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

[Python] Allow specifying a custom type for converting ExtensionScalar to python object

    XMLWordPrintableJSON

Details

    Description

      As a follow-up on ARROW-13541 (https://github.com/apache/arrow/pull/10904#discussion_r686609844), we could have a mechanism that the ExtensionType can control the behaviour of ExtensionScalar.as_py() method.

      Similarly as we have __arrow_ext_class__ for using an ExtensionArray subclass for the array object, we could indeed have a way to specify a custom scalar wrapper.

      Attachments

        Issue Links

          Activity

            People

              rokm Rok Mihevc
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 5.5h
                  5.5h