You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "xiong duan (Jira)" <ji...@apache.org> on 2024/10/17 01:09:00 UTC
[jira] [Created] (CALCITE-6631) The common type for a comparison operator returns the wrong type when comparing a Java type long with a SQL type INTEGER
xiong duan created CALCITE-6631:
-----------------------------------
Summary: The common type for a comparison operator returns the wrong type when comparing a Java type long with a SQL type INTEGER
Key: CALCITE-6631
URL: https://issues.apache.org/jira/browse/CALCITE-6631
Project: Calcite
Issue Type: Bug
Affects Versions: 1.38.0
Reporter: xiong duan
Fix For: 1.39.0
The unit test:
{code:java}
@Test void testComparisonJavaTypeAndSqlTypeCoercion() {
final Fixture f = fixture();
f.comparisonCommonType(f.intType, f.longJavaType, null);
}{code}
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)