Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
This can be observed by adding these test cases to `SqlToRelConverterTest`:
1. Join condition ON expression
@Test void test1() { final String sql = "select * from emp JOIN (VALUES ('XXX')) t(deptno) ON emp.deptno = t.deptno"; sql(sql).ok(); }
2. Common columns (USING/NATURAL) (since they both share the same code path for building join condition)
@Test void test2() { final String sql = "select * from emp JOIN (VALUES ('XXX')) t(deptno) USING (deptno)"; sql(sql).ok(); }
When test 1 runs, the SqlValidator calls TypeCoercionImpl::binaryComparisonCoercion
When test 2 runs, the SqlValidator does not call TypeCoercionImpl::binaryComparisonCoercion.
Attachments
Issue Links
- causes
-
CALCITE-6885 SqlToRelConverter#convertUsing should not fail if commonTypeForBinaryComparison returns null
-
- Closed
-
-
IGNITE-22295 Sql. Allow comparable types for common columns in NATURAL / USING join conditions
-
- Open
-
- links to