Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10283

[Python] Python deprecation warning for "PY_SSIZE_T_CLEAN will be required for '#' formats"

    XMLWordPrintableJSON

Details

    Description

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

      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,
      

      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

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m