Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1651

Difference in DATE cast between Hive and Calcite

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      Hive CAST('<literal>' as DATE) is handled by Java's Date.valueOf and thus expects yyyy-mm-dd. In Hive SELECT CAST('1' as DATE); yields NULL but in Calcite is 0001-12-31.

      I'm opening this as Calcite issue to track HIVE-15708 (migrate to Calcite 1.12) blockers, not sure if solution will require Calcite changes.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                rusanu Remus Rusanu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: