Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.38.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
- is related to
-
CALCITE-6617 TypeCoercion is not applied correctly to comparisons
- Closed
-
CALCITE-119 Comparing Java type long with SQL type INTEGER gives wrong answer
- Closed
- links to