sarutak opened a new pull request, #7076:
URL: https://github.com/apache/arrow-datafusion/pull/7076

   # Which issue does this PR close?
   
   Close #7071 
   
   # Rationale for this change
   
   For better usability.
   
   # What changes are included in this PR?
   
   Changed `exec::exec_from_lines` to ignore blank lines and comments at the 
end of query files for `datafusion-cli`.
   
   # Are these changes tested?
   
   Manually tested with query files which contain the following queries.
   ```
   select now();
   
   ```
   
   ```
   select now();
   
   -- Some comments
   ```
   
   Then, `datafusion-cli` doesn't complain.
   ```
   +--------------------------------+
   | now()                          |
   +--------------------------------+
   | 2023-07-24T18:22:06.373420703Z |
   +--------------------------------+
   1 row in set. Query took 0.005 seconds.
   ```
   
   # Are there any user-facing changes?
   
   No.
   


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