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

cast ('000-00-00 00:00:00' as timestamp/datetime) results in wrong conversion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      select cast ('0000-00-00' as date) , cast ('000-00-00 00:00:00' as timestamp) 

      -----------------------------------+

      _c0 _c1

      -----------------------------------+

      0002-11-30 0002-11-30 00:00:00.0

      -----------------------------------+

      Attachments

        Issue Links

          Activity

            People

              anuragshekhar Anurag Shekhar
              anuragshekhar Anurag Shekhar
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 40m
                  40m