You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by "Yiqun Zhang (Jira)" <ji...@apache.org> on 2023/08/22 17:29:00 UTC

[jira] [Created] (ORC-1490) Mistaken for a Java ORC writer when the ORC file footer does not specify a writer.

Yiqun Zhang created ORC-1490:
--------------------------------

             Summary: Mistaken for a Java ORC writer when the ORC file footer does not specify a writer.
                 Key: ORC-1490
                 URL: https://issues.apache.org/jira/browse/ORC-1490
             Project: ORC
          Issue Type: Bug
          Components: Java
    Affects Versions: 1.9.1, 1.8.4, 1.7.10
            Reporter: Yiqun Zhang


{code:java}
public OrcFile.WriterVersion getWriterVersion() {
  OrcProto.PostScript ps = fileTail.getPostscript();
  OrcProto.Footer footer = fileTail.getFooter();
  OrcFile.WriterImplementation writer =
      OrcFile.WriterImplementation.from(footer.getWriter());
  return OrcFile.WriterVersion.from(writer, ps.getWriterVersion());
} {code}
We should determine footer.hasWriter() before footer.getWriter().



--
This message was sent by Atlassian Jira
(v8.20.10#820010)