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

The common type for a comparison operator returns the wrong type when comparing a Java type long with a SQL type INTEGER

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.38.0
    • 1.39.0
    • None

    Description

      The unit test:

      RelDataType longJavaType = this.typeFactory.createJavaType(Long.class);
      @Test void testComparisonJavaTypeAndSqlTypeCoercion() {
      final Fixture f = fixture();
      f.comparisonCommonType(f.intType, f.longJavaType, null);
      }

      The common type for a comparison operator when when comparing a Java type long with a SQL type INTEGER should return LONG type or NULL, now return the INTEGER type.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nobigo xiong duan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: