sarutak opened a new issue, #7071:
URL: https://github.com/apache/arrow-datafusion/issues/7071

   ### Describe the bug
   
   Given we have a query file which contains blank lines or blank lines + 
comments at the end of it.
   
   ```
   select now();
   
   ```
   ```
   select now();
   
   -- Some comments 
   ```
   
   If we use such a file with datafusion-cli, it complains like as follows.
   ```
   $ datafusion-cli -f /path/to/sql
   DataFusion CLI v27.0.0
   +--------------------------------+
   | now()                          |
   +--------------------------------+
   | 2023-07-24T18:09:50.914361513Z |
   +--------------------------------+
   1 row in set. Query took 0.006 seconds.
   This feature is not implemented: The context requires a statement!
   ```
   
   This is a minor issue but users could be surprised what the error message 
means because any popular REPL tools like psql or spark-sql don't complain with 
such conditions.
   
   ### To Reproduce
   
   Explained above.
   
   ### Expected behavior
   
   No error message should be shown with such query files.
   
   ### Additional context
   
   _No response_


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

Reply via email to