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

[C++] Support DurationType in Cast kernel

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jorisvandenbossche Joris Van den Bossche Assign to me
            jorisvandenbossche Joris Van den Bossche
            Votes:
            0 Vote for this issue
            Watchers:
            2 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

              Slack

                Issue deployment