Hi Richard,
You can find detailed protocol information here:
https://github.com/apache/orc/tree/main/proto

As you can see, many fields are optional. These restrictions you mentioned
are mainly added by the specific ORC Reader implementation. You know Apache
ORC
is the official standard implementation of ORC Reader/Writer but not the
only one.
Apache ORC will add some other restrictions on top of the protocol.
This problem does not exist if you use Apache ORC Writer to write sn orc
file.

By the way, could you provide more detailed information or exception stack
for your use case?

On 2022/11/01 09:30:36 Richard Evans wrote:
> Hello
>
> Reading the message specifications in the ORC file format
> (https://orc.apache.org/specification/ORCv1/) I see every field is
> marked optional.  Yet some of the fields are always required (such as
> the footerLength in the file Postscript).
>
> So are all fields always present?  Or is there any way to tell which
> fields are truly optional and which are always required?
>
> Thanks
>
> Richard
>
>

Reply via email to