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

2023-08-22 Thread Yiqun Zhang (Jira)
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)


[jira] [Created] (ORC-1489) Assign a writer id to CUDF

2023-08-22 Thread Yiqun Zhang (Jira)
Yiqun Zhang created ORC-1489:


 Summary: Assign a writer id to CUDF
 Key: ORC-1489
 URL: https://issues.apache.org/jira/browse/ORC-1489
 Project: ORC
  Issue Type: Improvement
  Components: C++, Java
Affects Versions: 1.9.1, 1.8.4, 1.7.9
Reporter: Yiqun Zhang


CUDF implements a separate orc writer that uses the gpu to write ORC files, and 
we should assign a writer id to it.



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