dilipbiswal commented on issue #24150: [SPARK-27209][SQL] Split parsing of SELECT and INSERT into two top-level rules in the grammar file. URL: https://github.com/apache/spark/pull/24150#issuecomment-475699959 @cloud-fan It works :-) .. here is the output snippet : ``` spark-sql> select * from foo; 1 2 Time taken: 0.112 seconds, Fetched 2 row(s) spark-sql> from foo > select c1 where c1 = 1 > select c1 where c1 = 2; 1 2 Time taken: 0.218 seconds, Fetched 2 row(s) ``` It basically turns into : ``` select c1 from foo where c1 = 1 union all select c1 from foo where c1 = 2 ``` What i don't know is if it is designed to work or its simply a side effect of supporting multi insert.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
