devinjdangelo commented on code in PR #7336:
URL: https://github.com/apache/arrow-datafusion/pull/7336#discussion_r1300807263


##########
datafusion/common/src/file_type.rs:
##########
@@ -281,18 +311,18 @@ impl FileType {
             FileType::JSON | FileType::CSV => Ok(format!("{}{}", ext, 
c.get_ext())),
             FileType::PARQUET | FileType::AVRO | FileType::ARROW => match 
c.variant {
                 UNCOMPRESSED => Ok(ext),
-                _ => internal_err!(
-                    "FileCompressionType can be specified for CSV/JSON 
FileType."
-                ),
+                _ => Err(DataFusionError::Internal(

Review Comment:
   Actually, figured this out. I was trying to substitute in the macro in a 
place it shouldn't go (where DataFusionError is needed, not 
Err(DataFusionError)). 



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