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

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Python
    • None

    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

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

              Dates

                Created:
                Updated: