You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2020/10/12 12:35:00 UTC

[jira] [Created] (ARROW-10283) [Python] Python deprecation warning for "PY_SSIZE_T_CLEAN will be required for '#' formats"

Joris Van den Bossche created ARROW-10283:
---------------------------------------------

             Summary: [Python] Python deprecation warning for "PY_SSIZE_T_CLEAN will be required for '#' formats"
                 Key: ARROW-10283
                 URL: https://issues.apache.org/jira/browse/ARROW-10283
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
            Reporter: Joris Van den Bossche
             Fix For: 3.0.0


We have a few cases that run into this python deprecation warning:

{code}
pyarrow/tests/test_pandas.py: 9 warnings
pyarrow/tests/test_parquet.py: 7790 warnings
  sys:1: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
pyarrow/tests/test_pandas.py::TestConvertDecimalTypes::test_decimal_with_None_explicit_type
pyarrow/tests/test_pandas.py::TestConvertDecimalTypes::test_decimal_with_None_infer_type
  /buildbot/AMD64_Conda_Python_3_8/python/pyarrow/tests/test_pandas.py:114: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
    result = pd.Series(arr.to_pandas(), name=s.name)
pyarrow/tests/test_pandas.py::TestConvertDecimalTypes::test_strided_objects
  /buildbot/AMD64_Conda_Python_3_8/python/pyarrow/pandas_compat.py:1127: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
    result = pa.lib.table_to_blocks(options, block_table, categories,
{code}

Related to https://bugs.python.org/issue36381

I think one such usage example is at https://github.com/apache/arrow/blob/0b481523b7502a984788d93b822a335894ffe648/cpp/src/arrow/python/decimal.cc#L106



--
This message was sent by Atlassian Jira
(v8.3.4#803005)