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

   ### Describe the bug
   
   Hi, I think there may be an issue when trying to create an external table 
using a custom file type and compression... e.g. when I run:
   
   ```sql
   CREATE EXTERNAL TABLE vcf_file STORED AS VCF COMPRESSION TYPE GZIP LOCATION 
'file.vcf.gz'
   ```
   
   I get the error:
   
   ```
   Plan("File compression type can be specified for CSV/JSON files.")
   ```
   
   VCF is my file type, and I can create an external table of the uncompressed 
version.
   
   The error I think is to be interpreted as _only_ those file types given the 
logic:
   
   
https://github.com/apache/arrow-datafusion/blob/85ec31433615735a05d332f87cd0bdfc11aac663/datafusion/sql/src/statement.rs#L682-L687
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   I guess I'm not sure if this is a bug, but I'd expect to be able to create 
an external table with a file type that support compression but is not json or 
csv.
   
   ### Additional context
   
   I put together a quick branch I can open up as a PR if this turns out to be 
an actual bug.


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