Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.34.0
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
- blocks
-
CALCITE-5651 Type system decimal scale in inferred types may exceed allowed scale
- Closed
- is related to
-
CALCITE-4706 JDBC adapter generates casts exceeding Redshift's data types bounds
- Closed
- links to