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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to