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

Obtain typesystem from dialect in RelToSqlConverterTest

    XMLWordPrintableJSON

Details

    Description

      The problem is in the file SqlToRelConverterTest.java, in the static class Sql, in the following method:

          Sql dialect(SqlDialect dialect)

      {       return new Sql(schemaSpec, sql, dialect, parserConfig, librarySet, config,           relFn, transforms, typeSystem);     }

      The problem is that the dialect may have a different type system, which is ignored in this function. I think the function should read:

          Sql dialect(SqlDialect dialect)

      {       return new Sql(schemaSpec, sql, dialect, parserConfig, librarySet, config,           relFn, transforms, dialect.getTypeSystem());     }

      Several tests in this file do change the dialect type system.

      Attachments

        Issue Links

          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 - 1h
                  1h