wgtmac commented on code in PR #34580: URL: https://github.com/apache/arrow/pull/34580#discussion_r1138484592
########## java/vector/src/main/java/org/apache/arrow/vector/compression/NoCompressionCodec.java: ########## @@ -61,6 +61,10 @@ public static class Factory implements CompressionCodec.Factory { @Override public CompressionCodec createCodec(CompressionUtil.CodecType codecType) { + if (codecType != CompressionUtil.CodecType.NO_COMPRESSION) { + throw new IllegalArgumentException( + "Unsupported codec type: " + codecType + " for NoCompressionCodec"); Review Comment: Sounds good. I have refined the error message. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org