dongjoon-hyun commented on a change in pull request #570:
URL: https://github.com/apache/orc/pull/570#discussion_r530610434
##########
File path: java/core/src/java/org/apache/orc/impl/ReaderImpl.java
##########
@@ -436,6 +436,31 @@ protected static void ensureOrcFooter(FSDataInputStream in,
}
}
+ /**
+ * Ensure this is an ORC file to prevent users from trying to read text
+ * files or RC files as ORC files.
+ * @param psLen the postscript length
+ * @param buffer the tail of the file
+ */
+ protected static void ensureOrcFooter(ByteBuffer buffer, int psLen) throws
IOException {
Review comment:
Gentle ping, @pgaref . This should be marked as `@deprecated`.
----------------------------------------------------------------
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:
[email protected]