Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-23590

Calcite. Introduce and fix types cast rules.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.14
    • None
    • None
    • Release Notes Required

    Description

      Calcite type cast rules differ from the standard. It should respect it. Consider:

      // Works, but should not allow the cast at all.
      assertQuery("SELECT CAST(timestamp '1992-09-26 02:30:00' AS BIGINT)").returns(717474600000L).check();
      
      // Fails with `TINYINT overflow`, but should not allow the cast at all.
      assertQuery("SELECT CAST(timestamp '1992-09-26 02:30:00' AS TINYINT)").returns(1).check();
      

      Adoption of #IGNITE-20069

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vladsz83 Vladimir Steshin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m