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 2021/12/06 08:32:52 UTC

[GitHub] [spark] AngersZhuuuu edited a comment on pull request #34815: [SPARK-37555][SQL] spark-sql should pass last unclosed comment to backend

AngersZhuuuu edited a comment on pull request #34815:
URL: https://github.com/apache/spark/pull/34815#issuecomment-986548887


   > what if the users want to write the queries in multiple lines? does our CLI support it?
   
   CLI will cut input when meet a un-escaped `;`
   ```
   spark-sql> select
            > 1,
            > 2,
            > 3,
            > 4;
   1	2	3	4
   Time taken: 3.442 seconds, Fetched 1 row(s)
   spark-sql> select
            > 1,
            > 2 \\;
            > ;
   Error in query:
   extraneous input '\' expecting {<EOF>, ';'}(line 3, pos 2)
   
   == SQL ==
   select
   1,
   2 \;
   --^^^
   
   spark-sql>
   ```


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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