You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/07/07 01:16:04 UTC

[GitHub] [spark] maropu commented on pull request #29013: [SPARK-32196][SQL] Extract In convertible part if it is not convertible

maropu commented on pull request #29013:
URL: https://github.com/apache/spark/pull/29013#issuecomment-654542265


   I don't look into the impl. though (I just read the PR description), you meant this case? Or, do I miss something?
   ```
   scala> sql("select * from t1").show()
   +---+---+
   | c1| c2|
   +---+---+
   |  1|  3|
   |  3|  3|
   +---+---+
   
   
   scala> sql("select * from t1 where c1 in (1, 2, c2)").show()
   +---+---+
   | c1| c2|
   +---+---+
   |  1|  3|
   |  3|  3|
   +---+---+
   
   
   scala> sql("select * from (select * from t1 where c1 in (1, 2)) t2(c1, c2) where t2.c1 in (1, 2, t2.c2)").show()
   +---+---+
   | c1| c2|
   +---+---+
   |  1|  3|
   +---+---+
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org