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

[Python][Dataset] ScalarExpression doesn't accept numpy scalars

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.0.0
    • Python

    Description

      pyarrow.dataset.ScalarExpression doesn't accept numpy scalars. This would be useful as values coming out of pandas or numpy are such.

      Example:

      import pyarrow.dataset as ds
      import numpy as np
      
      ds.ScalarExpression(np.int64(2))
      ---------------------------------------------------------------------------
      TypeError                                 Traceback (most recent call last)
      <ipython-input-18-805083da7827> in <module>
      ----> 1 ds.ScalarExpression(np.int64(2))
      
      ~/miniconda3/envs/kartothek/lib/python3.7/site-packages/pyarrow/_dataset.pyx in pyarrow._dataset.ScalarExpression.__init__()
      
      TypeError: Not yet supported scalar value: 2 

      Attachments

        Issue Links

          Activity

            People

              alenka Alenka Frim
              uwe Uwe Korn
              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 - 1.5h
                  1.5h