pitrou commented on pull request #7789: URL: https://github.com/apache/arrow/pull/7789#issuecomment-660265813
Well, you can read the compressed size in bytes 4-7 and see if that corresponds to the actual buffer size you got. If by chance it corresponds but it is not actually Hadoop-LZ4-compressed, hopefully decompression will error out or give you a mismatching decompressed length, so you can fall back on regular LZ4-block compression. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org