wgtmac commented on issue #1475: URL: https://github.com/apache/orc/issues/1475#issuecomment-1521038012
Yes, the order is fixed. This is implemented in the `recordPosition` call as below. In the `TreeWriterBase.java`, positions of present stream are recorded first. https://github.com/apache/orc/blob/792c3f820d0b7a64b27c9dc4c390443386e6baf0/java/core/src/java/org/apache/orc/impl/writer/TreeWriterBase.java#L369-L377 And then in the `StringBaseTreeWriter.java`, positions of data stream and length stream are recorded in order. https://github.com/apache/orc/blob/9dbf833868591314014958cc58cd57fb1e8e739c/java/core/src/java/org/apache/orc/impl/writer/StringBaseTreeWriter.java#L265-L270 I followed the same order when I was implementing the C++ writer so they should be consistent. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
