Krisztian Szucs created ARROW-14468: ---------------------------------------
Summary: [Python] Resolve parquet version deprecation warnings when compiling pyarrow Key: ARROW-14468 URL: https://issues.apache.org/jira/browse/ARROW-14468 Project: Apache Arrow Issue Type: Improvement Components: Python Reporter: Krisztian Szucs {code} /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp: In function ‘PyObject* __pyx_pf_7pyarrow_8_parquet_12FileMetaData_14format_version___get__(__pyx_obj_7pyarrow_8_parquet_FileMetaData*)’: /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp:14168:36: warning: ‘parquet::ParquetVersion::PARQUET_2_0’ is deprecated: use PARQUET_2_4 or PARQUET_2_6 for fine-grained feature selection [-Wdeprecated-declarations] 14168 | case parquet::ParquetVersion::PARQUET_2_0: | ^~~~~~~~~~~ In file included from /tmp/arrow-6.0.0.theE2/install/include/parquet/types.h:30, from /tmp/arrow-6.0.0.theE2/install/include/parquet/schema.h:32, from /tmp/arrow-6.0.0.theE2/install/include/parquet/api/schema.h:21, from /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp:734: /tmp/arrow-6.0.0.theE2/install/include/parquet/type_fwd.h:44:5: note: declared here 44 | PARQUET_2_0 ARROW_DEPRECATED_ENUM_VALUE("use PARQUET_2_4 or PARQUET_2_6 " | ^~~~~~~~~~~ /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp:14168:36: warning: ‘parquet::ParquetVersion::PARQUET_2_0’ is deprecated: use PARQUET_2_4 or PARQUET_2_6 for fine-grained feature selection [-Wdeprecated-declarations] 14168 | case parquet::ParquetVersion::PARQUET_2_0: | ^~~~~~~~~~~ In file included from /tmp/arrow-6.0.0.theE2/install/include/parquet/types.h:30, from /tmp/arrow-6.0.0.theE2/install/include/parquet/schema.h:32, from /tmp/arrow-6.0.0.theE2/install/include/parquet/api/schema.h:21, from /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp:734: /tmp/arrow-6.0.0.theE2/install/include/parquet/type_fwd.h:44:5: note: declared here 44 | PARQUET_2_0 ARROW_DEPRECATED_ENUM_VALUE("use PARQUET_2_4 or PARQUET_2_6 " | ^~~~~~~~~~~ /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp: In function ‘std::shared_ptr<parquet::WriterProperties> __pyx_f_7pyarrow_8_parquet__create_writer_properties(__pyx_opt_args_7pyarrow_8_parquet__create_writer_properties*)’: /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp:23800:62: warning: ‘parquet::ParquetVersion::PARQUET_2_0’ is deprecated: use PARQUET_2_4 or PARQUET_2_6 for fine-grained feature selection [-Wdeprecated-declarations] 23800 | (void)(__pyx_v_props.version( parquet::ParquetVersion::PARQUET_2_0)); | ^~~~~~~~~~~ In file included from /tmp/arrow-6.0.0.theE2/install/include/parquet/types.h:30, from /tmp/arrow-6.0.0.theE2/install/include/parquet/schema.h:32, from /tmp/arrow-6.0.0.theE2/install/include/parquet/api/schema.h:21, from /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp:734: /tmp/arrow-6.0.0.theE2/install/include/parquet/type_fwd.h:44:5: note: declared here 44 | PARQUET_2_0 ARROW_DEPRECATED_ENUM_VALUE("use PARQUET_2_4 or PARQUET_2_6 " | ^~~~~~~~~~~ /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp:23800:62: warning: ‘parquet::ParquetVersion::PARQUET_2_0’ is deprecated: use PARQUET_2_4 or PARQUET_2_6 for fine-grained feature selection [-Wdeprecated-declarations] 23800 | (void)(__pyx_v_props.version( parquet::ParquetVersion::PARQUET_2_0)); | ^~~~~~~~~~~ In file included from /tmp/arrow-6.0.0.theE2/install/include/parquet/types.h:30, from /tmp/arrow-6.0.0.theE2/install/include/parquet/schema.h:32, from /tmp/arrow-6.0.0.theE2/install/include/parquet/api/schema.h:21, from /tmp/arrow-6.0.0.theE2/apache-arrow-6.0.0/python/build/temp.linux-x86_64-3.8/_parquet.cpp:734: /tmp/arrow-6.0.0.theE2/install/include/parquet/type_fwd.h:44:5: note: declared here 44 | PARQUET_2_0 ARROW_DEPRECATED_ENUM_VALUE("use PARQUET_2_4 or PARQUET_2_6 " | ^~~~~~~~~~~ {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)