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

SqlTypeFactoryTest.testUnknownCreateWithNullabilityTypeConsistency fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Resolved
    • None
    • 1.30.0
    • None

    Description

      When run during the build (./gradlew clean build) the test fails intermittently but when it is executed individually it always fails.

      ./gradlew cleanTest :core:test --tests SqlTypeFactoryTest.testUnknownCreateWithNullabilityTypeConsistency
      

      Stacktrace

      java.lang.AssertionError: 
      Expected: is an instance of org.apache.calcite.sql.type.SqlTypeFactoryImpl$UnknownSqlType
           but: <UNKNOWN> is a org.apache.calcite.sql.type.BasicSqlType
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
      	at org.apache.calcite.sql.type.SqlTypeFactoryTest.testUnknownCreateWithNullabilityTypeConsistency(SqlTypeFactoryTest.java:296)
      

      Due to type canonization in RelDataTypeFactory the class of the created type is not the expected one.

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              zabetak Stamatis Zampetakis
              Votes:
              0 Vote for this issue
              Watchers:
              5 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