Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-18557

Sql. AbstractTypeCoercion needToCast may raise an AssertionError.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • 3.0.0-beta1
    • sql
    • 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); 

      Attachments

        Activity

          People

            Unassigned Unassigned
            mzhuravkov Maksim Zhuravkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: