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

[C++] Implement timestamp to date/time cast that extracts value

    XMLWordPrintableJSON

Details

    Description

      Change casting from timestamp to date/time to extract the value, instead of just truncating as we currently do (which rounds, giving incorrect answers, in some cases). This should also be a safe cast by default (unless you want to do something like cast from timestamp[ns] to time32[s] which may overflow).

      This should behave like Postgres DATE/CAST(... as TIME), or Pandas Timestamp.date/Timestamp.time.

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              lidavidm David Li
              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 - 4h 50m
                  4h 50m