Package org.apache.calcite.test
Class SqlValidatorDynamicTest
- java.lang.Object
-
- org.apache.calcite.test.SqlValidatorTestCase
-
- org.apache.calcite.test.SqlValidatorDynamicTest
-
public class SqlValidatorDynamicTest extends SqlValidatorTestCase
Concrete child class ofSqlValidatorTestCase
, containing lots of unit tests.If you want to run these same tests in a different environment, create a derived class whose
getTester()
returns a different implementation ofSqlTester
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.calcite.test.SqlValidatorTestCase
SqlValidatorTestCase.Sql, SqlValidatorTestCase.Tester
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ANY
private static java.lang.String
EMP_RECORD_TYPE
private static java.lang.String
ERR_AGG_IN_GROUP_BY
private static java.lang.String
ERR_AGG_IN_ORDER_BY
private static java.lang.String
ERR_IN_OPERANDS_INCOMPATIBLE
private static java.lang.String
ERR_IN_VALUES_INCOMPATIBLE
private static java.lang.String
ERR_NESTED_AGG
protected static org.slf4j.Logger
LOGGER
private static java.lang.String
ROW_RANGE_NOT_ALLOWED_WITH_RANK
private static java.lang.String
STR_AGG_REQUIRES_MONO
private static java.lang.String
STR_ORDER_REQUIRES_MONO
private static java.lang.String
STR_SET_OP_INCONSISTENT
protected static boolean
TODO
Deprecated.Deprecated so that usages of this constant will show up in yellow in Intellij and maybe someone will fix them.-
Fields inherited from class org.apache.calcite.test.SqlValidatorTestCase
EXTENDED_CATALOG_TESTER, EXTENDED_CATALOG_TESTER_2003, EXTENDED_CATALOG_TESTER_LENIENT, tester, TESTER_CONFIGURATION_RULE
-
-
Constructor Summary
Constructors Constructor Description SqlValidatorDynamicTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlTester
getTester()
Returns a tester.static void
setUSLocale()
void
testAmbiguousDynamicStar()
Test case for [CALCITE-1150] Dynamic Table / Dynamic Star support.void
testAmbiguousDynamicStar2()
void
testAmbiguousDynamicStar3()
void
testAmbiguousDynamicStar4()
void
testDynamicStar2()
When resolve column reference, regular field has higher priority than dynamic star columns.-
Methods inherited from class org.apache.calcite.test.SqlValidatorTestCase
assertExceptionIsThrown, check, checkCharset, checkCollation, checkColumnType, checkEx, checkExp, checkExpFails, checkExpType, checkFails, checkIntervalConv, checkResultType, checkWholeExpFails, expr, sql, win, winExp, winExp2, winSql
-
-
-
-
Field Detail
-
TODO
protected static final boolean TODO
Deprecated.Deprecated so that usages of this constant will show up in yellow in Intellij and maybe someone will fix them.- See Also:
- Constant Field Values
-
ANY
private static final java.lang.String ANY
- See Also:
- Constant Field Values
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
ERR_IN_VALUES_INCOMPATIBLE
private static final java.lang.String ERR_IN_VALUES_INCOMPATIBLE
- See Also:
- Constant Field Values
-
ERR_IN_OPERANDS_INCOMPATIBLE
private static final java.lang.String ERR_IN_OPERANDS_INCOMPATIBLE
- See Also:
- Constant Field Values
-
ERR_AGG_IN_GROUP_BY
private static final java.lang.String ERR_AGG_IN_GROUP_BY
- See Also:
- Constant Field Values
-
ERR_AGG_IN_ORDER_BY
private static final java.lang.String ERR_AGG_IN_ORDER_BY
- See Also:
- Constant Field Values
-
ERR_NESTED_AGG
private static final java.lang.String ERR_NESTED_AGG
- See Also:
- Constant Field Values
-
EMP_RECORD_TYPE
private static final java.lang.String EMP_RECORD_TYPE
- See Also:
- Constant Field Values
-
STR_AGG_REQUIRES_MONO
private static final java.lang.String STR_AGG_REQUIRES_MONO
- See Also:
- Constant Field Values
-
STR_ORDER_REQUIRES_MONO
private static final java.lang.String STR_ORDER_REQUIRES_MONO
- See Also:
- Constant Field Values
-
STR_SET_OP_INCONSISTENT
private static final java.lang.String STR_SET_OP_INCONSISTENT
- See Also:
- Constant Field Values
-
ROW_RANGE_NOT_ALLOWED_WITH_RANK
private static final java.lang.String ROW_RANGE_NOT_ALLOWED_WITH_RANK
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTester
public SqlTester getTester()
Description copied from class:SqlValidatorTestCase
Returns a tester. Derived classes should override this method to run the same set of tests in a different testing environment.- Overrides:
getTester
in classSqlValidatorTestCase
-
setUSLocale
public static void setUSLocale()
-
testAmbiguousDynamicStar
public void testAmbiguousDynamicStar() throws java.lang.Exception
Test case for [CALCITE-1150] Dynamic Table / Dynamic Star support.- Throws:
java.lang.Exception
-
testAmbiguousDynamicStar2
public void testAmbiguousDynamicStar2() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAmbiguousDynamicStar3
public void testAmbiguousDynamicStar3() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAmbiguousDynamicStar4
public void testAmbiguousDynamicStar4() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDynamicStar2
public void testDynamicStar2() throws java.lang.Exception
When resolve column reference, regular field has higher priority than dynamic star columns.- Throws:
java.lang.Exception
-
-