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

[C++][Gandiva] Fix TO_TIMESTAMP(INTEGER) function for big integer values

    XMLWordPrintableJSON

Details

    Description

      When to_timestamp function gets a big value, the function returns an incorrect date due integer overflow:

      • TO_TIMESTAMP(1626255099[INT32]) -> '1969-12-14 04:54:53.816'

       

      The correct response should be:

      • TO_TIMESTAMP(1626255099[INT32]) -> '2021-07-14 09:31:39'

      Attachments

        Issue Links

          Activity

            People

              anthonylouis Anthony Louis Gotlib Ferreira
              anthonylouis Anthony Louis Gotlib Ferreira
              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 - 20m
                  20m