You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2021/10/28 12:41:00 UTC
[jira] [Commented] (ARROW-14468) [Python] Resolve parquet version
deprecation warnings when compiling pyarrow
[ https://issues.apache.org/jira/browse/ARROW-14468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17435376#comment-17435376 ]
Joris Van den Bossche commented on ARROW-14468:
-----------------------------------------------
I would need to look back at it, but I _think_ the issue is that it's not easy to avoid doing this in cython (the warning comes from C++, but for backwards compatibility on the python level, we still need to use it in the cython bindings)
> [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
> Assignee: Benson Muite
> Priority: Major
>
> {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)