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

Illegal dates are accepted by casts

    XMLWordPrintableJSON

Details

    Description

      The following test passes in SqlOperatorTest:

        @Test public void testIllegalDate() {
          final SqlOperatorFixture f = fixture();
          f.checkScalar("cast('1945-02-32' as DATE)",
              "1945-03-04", "DATE NOT NULL");
        }
      

      There is no February 32, I suspect that this expression should produce an error.

      Attachments

        Activity

          People

            mbudiu Mihai Budiu
            mbudiu Mihai Budiu
            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 - 20m
                20m