Class TypeCoercionConverterTest


  • public class TypeCoercionConverterTest
    extends SqlToRelTestBase
    Test cases for implicit type coercion converter. see TypeCoercion doc or CalciteImplicitCasts for conversion details.
    • Constructor Detail

      • TypeCoercionConverterTest

        public TypeCoercionConverterTest()
    • Method Detail

      • getDiffRepos

        protected DiffRepository getDiffRepos()
        Description copied from class: SqlToRelTestBase
        Returns the default diff repository for this test, or null if there is no repository.

        The default implementation returns null.

        Sub-classes that want to use a diff repository can override. Sub-sub-classes can override again, inheriting test cases and overriding selected test results.

        And individual test cases can override by providing a different tester object.

        Overrides:
        getDiffRepos in class SqlToRelTestBase
        Returns:
        Diff repository
      • testBinaryComparable

        public void testBinaryComparable()
        Test case for TypeCoercion.commonTypeForBinaryComparison(org.apache.calcite.rel.type.RelDataType, org.apache.calcite.rel.type.RelDataType).
      • testBinaryComparable1

        public void testBinaryComparable1()
      • testBinaryComparable2

        public void testBinaryComparable2()
      • testBinaryComparable3

        public void testBinaryComparable3()
      • testBinaryComparable4

        public void testBinaryComparable4()
      • testBinaryComparable5

        public void testBinaryComparable5()
      • testBinaryComparable6

        public void testBinaryComparable6()
      • testInOperation

        public void testInOperation()
        Test cases for TypeCoercion.inOperationCoercion(org.apache.calcite.sql.SqlCallBinding).
      • testInOperation1

        public void testInOperation1()
      • testInOperation2

        public void testInOperation2()
      • testBooleanEquality

        public void testBooleanEquality()
        Test cases for TypeCoercionImpl.booleanEquality(org.apache.calcite.sql.SqlCallBinding, org.apache.calcite.rel.type.RelDataType, org.apache.calcite.rel.type.RelDataType).
      • testBooleanEquality1

        public void testBooleanEquality1()
      • testBooleanEquality2

        public void testBooleanEquality2()
      • testBooleanEquality3

        public void testBooleanEquality3()
      • testBooleanEquality4

        public void testBooleanEquality4()
      • testBooleanEquality5

        public void testBooleanEquality5()
      • testCaseWhen

        public void testCaseWhen()
      • testBuiltinFunctionCoercion

        public void testBuiltinFunctionCoercion()
      • testStarImplicitTypeCoercion

        public void testStarImplicitTypeCoercion()
      • testSetOperations

        public void testSetOperations()
      • checkPlanEquals

        private void checkPlanEquals​(java.lang.String sql)