TechnophobicLampshade opened a new issue, #40213:
URL: https://github.com/apache/arrow/issues/40213

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   ```
               parquet::WriterProperties::Builder builder;
               builder.compression(parquet::Compression::LZ4_FRAME);
               
               using FileClass = ::arrow::io::FileOutputStream;
               std::shared_ptr<FileClass> out_file = 
FileClass::Open(filename_).ValueOrDie();
               std::shared_ptr<parquet::WriterProperties> props = 
builder.build();
               parquetFile_ = parquet::ParquetFileWriter::Open(out_file, 
schema, props);
   ```
   I'm using the low-level parquet API to write data. When I run the above I 
get:
   
   ```
   terminate called after throwing an instance of 'parquet::ParquetException'
     what():  Codec type lz4 not supported in Parquet format
   ```
   
   because it seems like LZ4_FRAME is not present in this code:
   
https://github.com/apache/arrow/blob/5f75dbf13207b1ec6f4d922c37b9f8bffbd9c3fe/cpp/src/parquet/types.cc#L38
   
   Despite that, I am writing data from pyarrow using the LZ4_FRAME encoding 
and c++ _reader_ code using the `parquet::ParquetFileReader` API seems to 
handle it OK. I'm not familiar with the internals and why read/write would 
differ here. I wonder if there is anything preventing LZ4_FRAME from being 
added to `IsSupportedCodec`?
   
   
   ### Component(s)
   
   C++, Parquet


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