lahwaacz opened a new issue, #2239:
URL: https://github.com/apache/orc/issues/2239
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: STRUC
T\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: STRU
CT\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?
--
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]