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/02/23 08:39:04 UTC

[GitHub] [spark] maropu commented on issue #27567: [SPARK-30822][SQL] Remove semicolon at the end of a sql query

maropu commented on issue #27567: [SPARK-30822][SQL] Remove semicolon at the end of a sql query
URL: https://github.com/apache/spark/pull/27567#issuecomment-590045665
 
 
   In database systems, a semicolon is a standard way to split multiple statements into each one. `spark.sql` does not support multiple statements now (https://issues.apache.org/jira/browse/SPARK-24260) though, is this support still useful?
   
   On the other hand, in `bin/spark-sql`, we can use semicolons to input multiple queries;
   ```
   spark-sql> select 1; select 1; select 1;
   1
   Time taken: 0.219 seconds, Fetched 1 row(s)
   1
   Time taken: 0.129 seconds, Fetched 1 row(s)
   1
   Time taken: 0.151 seconds, Fetched 1 row(s)
   ```

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


With regards,
Apache Git Services

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