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

Date and timestamp type converts invalid strings to '1970-01-01'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 0.12.0
    • Fix Version/s: None
    • Component/s: Types
    • Labels:
      None

      Description

      select
        cast('abcd' as date),
        cast('abcd' as timestamp)
      from src limit 1;
      

      This prints out 1970-01-01.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vikram.dixit Vikram Dixit K
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: