Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-758

to_timestamp(unix time) not returning correct result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • Functions - Drill
    • None

    Description

      Ran the following to_timestamp query passing it a unix timestamp:

      select to_timestamp(1284352323) from voter where voter_id=10;

      The value returned looks like unix epoch time:
      1970-01-15T20:45:52.323-08:00

      Any unix time used returned the same year (1970) and month (01).

      Attachments

        1. DRILL-758.patch
          6 kB
          Mehant Baid

        Activity

          People

            Unassigned Unassigned
            knguyen Krystal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: