bert-beyondloops opened a new pull request, #18074:
URL: https://github.com/apache/datafusion/pull/18074

   ## Which issue does this PR close?
   
   COPY TO does not produce a single output file for a zero rows query
   
   - Closes #18073
   
   ## Rationale for this change
   
   Executing following sql does not effectively create a single output file on 
disk :
   
   COPY (SELECT 1 AS id WHERE FALSE) TO 'table_no_rows.parquet';
   
   I would expect it creates a parquet file containing 0 rows including the 
schema metadata.
   
   The fact you can still query the schema of such a table is still valuable 
information.
   
   ## What changes are included in this PR?
   
   
   
   ## Are these changes tested?
   
   Additional COPY TO test added in the copy.slt sqllogictests
   
   ## Are there any user-facing changes?
   
   A zero rows file will be created now
   
   


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