Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21743

day( ) gives wrong day from the date in Apache Hive 3.1 server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 3.0.1
    • None
    • Hive
    • None
    • Server: Apache Hive 3.1 

      Driver hive-jdbc-3.1.0.3.1.0.0-78

    Description

      Using Apache Hive 3.1 server ////

      Run the following SQL and you will get 3 instead of 1

      SELECT
      (day( DATE '0001-01-01'))

      FROM
      `table`

      PLEASE NOTE THIS DOES NOT HAPPEN WITH Apache HIVE 2.1 SERVER 

      Attachments

        Activity

          People

            Unassigned Unassigned
            adarshdeep.cheema@ibm.com Adarshdeep Cheema
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: