Djjanks commented on issue #298:
URL: https://github.com/apache/arrow-js/issues/298#issuecomment-3370074112

   There are no default codecs automatically registered. Users have to 
explicitly register their own compression codecs if they need.
   
   **Regarding the current implementation:**
   1. **Codec Registration**: Users need to manually register compression 
codecs using `compressionRegistry.set()`. The code you saw in tests 
(`registerCompressionCodecs`) is indeed just for testing purposes and serves as 
an example that users can adapt.
   
   2. **Error Handling Logic:**
   - When users register a codec with encoder, we validate it by checking the 
magic number, message length, and structure compressed data
   - Errors will only be thrown when users attempt to:
     - Write compressed data without a registered codec
     - Read compressed data without the appropriate codec available


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