Repository navigation
Closed
Description
The following test is failing when I build orc 2.1.2 on Arch Linux
[----------] 5 tests from TestFileMetadata
[ RUN ] TestFileMetadata.testRaw
/usr/src/debug/apache-orc/apache-orc/tools/test/TestFileMetadata.cc:153: Failure
Expected equality of these values:
expected
Which is: "Raw file tail: /build/apache-orc/src/apache-orc/examples/orc_split_elim.orc\npostscript {\n footer_length: 288\n compression: NONE\n version: 0\n version: 12\n metadata_length: 526\n magic: \"ORC\"\n}\nfooter {\n header_length: 3\n content_length: 245568\n stripes {\n offset: 3\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 45571\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 91139\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 136707\n index_length: 138\n data_length: 45283\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 200000\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n types {\n kind: STRUCT\n subtypes: 1\n subtypes: 2\n subtypes: 3\n subtypes: 4\n subtypes: 5\n field_names: \"userid\"\n field_names: \"string1\"\n field_names: \"subtype\"\n field_names: \"decimal1\"\n field_names: \"ts\"\n }\n types {\n kind: LONG\n }\n types {\n kind: STRING\n }\n types {\n kind: DOUBLE\n }\n types {\n kind: DECIMAL\n }\n types {\n kind: TIMESTAMP\n }\n number_of_rows: 25000\n statistics {\n number_of_values: 25000\n }\n statistics {\n number_of_values: 25000\n int_statistics {\n minimum: 2\n maximum: 100\n sum: 2499619\n }\n }\n statistics {\n number_of_values: 25000\n string_statistics {\n minimum: \"bar\"\n maximum: \"zebra\"\n sum: 124990\n }\n }\n statistics {\n number_of_values: 25000\n double_statistics {\n minimum: 0.8\n maximum: 80\n sum: 200051.40000000002\n }\n }\n statistics {\n number_of_values: 25000\n decimal_statistics {\n minimum: \"0\"\n maximum: \"5.5\"\n sum: \"16.6\"\n }\n }\n statistics {\n number_of_values: 25000\n }\n row_index_stride: 10000\n}\nfile_length: 246402\npostscript_length: 19\n"
output
Which is: "Raw file tail: /build/apache-orc/src/apache-orc/examples/orc_split_elim.orc\ngoo.gle/debugstr \npostscript {\n footer_length: 288\n compression: NONE\n version: 0\n version: 12\n metadata_length: 526\n magic: \"ORC\"\n}\nfooter {\n header_length: 3\n content_length: 245568\n stripes {\n offset: 3\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 45571\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 91139\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 136707\n index_length: 138\n data_length: 45283\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 200000\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n types {\n kind: STRUCT\n subtypes: 1\n subtypes: 2\n subtypes: 3\n subtypes: 4\n subtypes: 5\n field_names: \"userid\"\n field_names: \"string1\"\n field_names: \"subtype\"\n field_names: \"decimal1\"\n field_names: \"ts\"\n }\n types {\n kind: LONG\n }\n types {\n kind: STRING\n }\n types {\n kind: DOUBLE\n }\n types {\n kind: DECIMAL\n }\n types {\n kind: TIMESTAMP\n }\n number_of_rows: 25000\n statistics {\n number_of_values: 25000\n }\n statistics {\n number_of_values: 25000\n int_statistics {\n minimum: 2\n maximum: 100\n sum: 2499619\n }\n }\n statistics {\n number_of_values: 25000\n string_statistics {\n minimum: \"bar\"\n maximum: \"zebra\"\n sum: 124990\n }\n }\n statistics {\n number_of_values: 25000\n double_statistics {\n minimum: 0.8\n maximum: 80\n sum: 200051.40000000002\n }\n }\n statistics {\n number_of_values: 25000\n decimal_statistics {\n minimum: \"0\"\n maximum: \"5.5\"\n sum: \"16.6\"\n }\n }\n statistics {\n number_of_values: 25000\n }\n row_index_stride: 10000\n}\nfile_length: 246402\npostscript_length: 19\n"
With diff:
@@ +1,4 @@
Raw file tail: /build/apache-orc/src/apache-orc/examples/orc_split_elim.orc
+goo.gle/debugstr
postscript {
footer_length: 288
/usr/src/debug/apache-orc/apache-orc/tools/test/TestFileMetadata.cc:157: Failure
Expected equality of these values:
expected
Which is: "Raw file tail: /build/apache-orc/src/apache-orc/examples/orc_split_elim.orc\npostscript {\n footer_length: 288\n compression: NONE\n version: 0\n version: 12\n metadata_length: 526\n magic: \"ORC\"\n}\nfooter {\n header_length: 3\n content_length: 245568\n stripes {\n offset: 3\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 45571\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 91139\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 136707\n index_length: 138\n data_length: 45283\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 200000\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n types {\n kind: STRUCT\n subtypes: 1\n subtypes: 2\n subtypes: 3\n subtypes: 4\n subtypes: 5\n field_names: \"userid\"\n field_names: \"string1\"\n field_names: \"subtype\"\n field_names: \"decimal1\"\n field_names: \"ts\"\n }\n types {\n kind: LONG\n }\n types {\n kind: STRING\n }\n types {\n kind: DOUBLE\n }\n types {\n kind: DECIMAL\n }\n types {\n kind: TIMESTAMP\n }\n number_of_rows: 25000\n statistics {\n number_of_values: 25000\n }\n statistics {\n number_of_values: 25000\n int_statistics {\n minimum: 2\n maximum: 100\n sum: 2499619\n }\n }\n statistics {\n number_of_values: 25000\n string_statistics {\n minimum: \"bar\"\n maximum: \"zebra\"\n sum: 124990\n }\n }\n statistics {\n number_of_values: 25000\n double_statistics {\n minimum: 0.8\n maximum: 80\n sum: 200051.40000000002\n }\n }\n statistics {\n number_of_values: 25000\n decimal_statistics {\n minimum: \"0\"\n maximum: \"5.5\"\n sum: \"16.6\"\n }\n }\n statistics {\n number_of_values: 25000\n }\n row_index_stride: 10000\n}\nfile_length: 246402\npostscript_length: 19\n"
output
Which is: "Raw file tail: /build/apache-orc/src/apache-orc/examples/orc_split_elim.orc\ngoo.gle/debugonly \npostscript {\n footer_length: 288\n compression: NONE\n version: 0\n version: 12\n metadata_length: 526\n magic: \"ORC\"\n}\nfooter {\n header_length: 3\n content_length: 245568\n stripes {\n offset: 3\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 45571\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 91139\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 136707\n index_length: 138\n data_length: 45283\n footer_length: 149\n number_of_rows: 5000\n }\n stripes {\n offset: 200000\n index_length: 137\n data_length: 45282\n footer_length: 149\n number_of_rows: 5000\n }\n types {\n kind: STRUCT\n subtypes: 1\n subtypes: 2\n subtypes: 3\n subtypes: 4\n subtypes: 5\n field_names: \"userid\"\n field_names: \"string1\"\n field_names: \"subtype\"\n field_names: \"decimal1\"\n field_names: \"ts\"\n }\n types {\n kind: LONG\n }\n types {\n kind: STRING\n }\n types {\n kind: DOUBLE\n }\n types {\n kind: DECIMAL\n }\n types {\n kind: TIMESTAMP\n }\n number_of_rows: 25000\n statistics {\n number_of_values: 25000\n }\n statistics {\n number_of_values: 25000\n int_statistics {\n minimum: 2\n maximum: 100\n sum: 2499619\n }\n }\n statistics {\n number_of_values: 25000\n string_statistics {\n minimum: \"bar\"\n maximum: \"zebra\"\n sum: 124990\n }\n }\n statistics {\n number_of_values: 25000\n double_statistics {\n minimum: 0.8\n maximum: 80\n sum: 200051.40000000002\n }\n }\n statistics {\n number_of_values: 25000\n decimal_statistics {\n minimum: \"0\"\n maximum: \"5.5\"\n sum: \"16.6\"\n }\n }\n statistics {\n number_of_values: 25000\n }\n row_index_stride: 10000\n}\nfile_length: 246402\npostscript_length: 19\n"
With diff:
@@ +1,4 @@
Raw file tail: /build/apache-orc/src/apache-orc/examples/orc_split_elim.orc
+goo.gle/debugonly
postscript {
footer_length: 288
[ FAILED ] TestFileMetadata.testRaw (13 ms)
Any idea what is wrong?
Metadata
Metadata
Assignees
Labels
No labels
Activity
dongjoon-hyun commentedon May 24, 2025
Thank you for reporting. At the first glance,
goo.gle/debugstrlooks like the root cause but it's not injected by Apache ORC source code. Maybe, please check your local ly installed debug library.ffacs commentedon May 25, 2025
https://protobuf.dev/programming-guides/deserialize-debug/ There seems to be a breaking change in protobuf’s debug string output in version 30.x.
dongjoon-hyun commentedon May 27, 2025
Thank you, @ffacs .
If the error message comes from non-vanilla Apache ORC source code, there is not much thing we can discuss in Apache ORC repo. Let me close for now.
To @lahwaacz , feel free to re-open with the reproducible procedure. For example, what you did after
git clone.lahwaacz commentedon May 27, 2025
@dongjoon-hyun I don't know what you mean by "non-vanilla Apache ORC source code" since the issue, as @ffacs pointed out, is due to breaking changes in protobuf.
Anyway, to reproduce this, feel free to run the following reproducer in an Arch Linux Docker/Podman container, which currently has protobuf 31.
Save the following script as
repro.sh(the procedure is based on the apache-orc PKGBUILD):Run it as
podman run -it --rm --userns nomap -v ./repro.sh:/repro.sh quay.io/archlinux/archlinux:base-devel /repro.shWe need a few patches to successfully build apache-orc on Arch Linux, but those are separate issues: #2225 and #2240
dongjoon-hyun commentedon May 28, 2025
To @lahwaacz , what I meant is any changes after cloning the git repo. It's not Apache ORC code any longer.
In the community, a test failure is used as a completely different term from a compilation failure .
In this issue, you reported with
Failing test on Arch LinuxThe following test is failing when I build orc 2.1.2 on Arch LinuxTechnically, it's an invalid claim when a compilation fails from the beginning.
dongjoon-hyun commentedon Aug 15, 2025
To @lahwaacz , I got a hint from your comment.
Recently, I revisit this issue and it turns out that the root cause is the breaking change of
ProtocolBufferat v30.0. They injected thatdebug markersintentionally.Anyway, I want to inform you that I made a PR for your issue. Hopefully, it can help you with Apache ORC 2.2.1.
google::protobuf::TextFormatinstead ofDebugStringforProtobufv30+ #2358ORC-1974: [C++] Use `google::protobuf::TextFormat` instead of `DebugS…
ORC-1974: [C++] Use `google::protobuf::TextFormat` instead of `DebugS…
ORC-1974: [C++] Use `google::protobuf::TextFormat` instead of `DebugS…