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

[C++] Support DurationType in Cast kernel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.16.0
    • C++

    Description

      Currently, duration is not yet supported in basic cast operations (using the python binding from ARROW-5855, currently from my branch, not yet merged):

      In [25]: arr = pa.array([1, 2])
      
      In [26]: arr.cast(pa.duration('s'))  
      ...
      ArrowNotImplementedError: No cast implemented from int64 to duration[s]
      
      In [27]: arr = pa.array([1, 2], pa.duration('s'))  
      
      In [28]: arr.cast(pa.duration('ms'))
      ...
      ArrowNotImplementedError: No cast implemented from duration[s] to duration[ms]
      

      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 - 2h
                  2h