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

Inconsistent results with datetime functions on different machines

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.3.0
    • None
    • Functions - Drill
    • None

    Description

      git.commit.id.abbrev=a6a0fc3

      The below query yields different results on different machines
      System 1 :

      0: jdbc:drill:zk=10.10.100.190:5181> select datediff(date '1996-03-01', timestamp '1997-02-10 17:32:00.0') from cp.`tpch/lineitem.parquet` limit 1;
      +---------+
      | EXPR$0  |
      +---------+
      | -346    |
      +---------+
      1 row selected (1.57 seconds)
      

      System 2 :

      0: jdbc:drill:drillbit=10.10.88.193> select datediff(date '1996-03-01', timestamp '1997-02-10 17:32:00.0') from cp.`tpch/lineitem.parquet` limit 1;
      +---------+
      | EXPR$0  |
      +---------+
      | -347    |
      +---------+
      1 row selected (1.239 seconds)
      

      Attachments

        Issue Links

          Activity

            People

              vitalii Vitalii Diravka
              rkins Rahul Kumar Challapalli
              Chun Chang Chun Chang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: