SPARK-3711: Incorporate review comments. Move optimization of In clause to Optimizer.scala by adding a rule. Add
appropriate comments