jonahgao opened a new pull request, #10300:
URL: https://github.com/apache/datafusion/pull/10300

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and 
enhancements and this helps us generate change logs for our releases. You can 
link an issue to this PR using the GitHub syntax. For example `Closes #123` 
indicates that this PR will close issue #123.
   -->
   
   Closes #8904.
   
   ## Rationale for this change
   When the query result does not contain rows, use the newly added `schema` 
parameter to create an empty batch and print column headers.
   
   ## What changes are included in this PR?
   Print column headers when query result contains no rows.
   ```sh
   DataFusion CLI v37.1.0
   > select * from (values (1)) where column1 = 2;
   +---------+
   | column1 |
   +---------+
   +---------+
   0 row(s) fetched.
   Elapsed 0.072 seconds.
   ```
   
   ## Are these changes tested?
   Yes
   
   ## 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]


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

Reply via email to