Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
None
-
Docs Required, Release Notes Required
Description
Some combinations of data types may cause AbstractTypeCoercion to raise an AssertionError. See TypeCoercionTest testNumericToDate.
Caused by: java.lang.AssertionError at org.apache.calcite.sql.validate.implicit.AbstractTypeCoercion.needToCast(AbstractTypeCoercion.java:274) at org.apache.ignite.internal.sql.engine.prepare.IgniteTypeCoercion.needToCast(IgniteTypeCoercion.java:123) at org.apache.ignite.internal.sql.engine.prepare.IgniteTypeCoercion.coerceOperandType(IgniteTypeCoercion.java:145) at org.apache.ignite.internal.sql.engine.prepare.IgniteTypeCoercion.binaryComparisonCoercion(IgniteTypeCoercion.java:88) at org.apache.calcite.sql.type.ComparableOperandTypeChecker.checkOperandTypes(ComparableOperandTypeChecker.java:70)
AbstractTypeCoercion::needToCast:
at org.apache.calcite.sql.validate.implicit.AbstractTypeCoercion.needToCast(AbstractTypeCoercion.java:274) // Should keep sync with rules in SqlTypeCoercionRule. assert SqlTypeUtil.canCastFrom(toType, fromType, true);