Package org.apache.calcite.test
Class SqlTestGen.SqlValidatorSpooler
- java.lang.Object
-
- org.apache.calcite.test.SqlValidatorTestCase
-
- org.apache.calcite.test.SqlValidatorTest
-
- org.apache.calcite.test.SqlTestGen.SqlValidatorSpooler
-
- Enclosing class:
- SqlTestGen
private static class SqlTestGen.SqlValidatorSpooler extends SqlValidatorTest
Subversive subclass, which spools results to a writer rather than running tests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqlTestGen.SqlValidatorSpooler.MyInvocationHandler
Handles the methods inSqlValidator
that are called from validator tests.-
Nested classes/interfaces inherited from class org.apache.calcite.test.SqlValidatorTestCase
SqlValidatorTestCase.Sql, SqlValidatorTestCase.Tester
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.PrintWriter
pw
private static SqlTestFactory
SPOOLER_VALIDATOR
-
Fields inherited from class org.apache.calcite.test.SqlValidatorTest
LOGGER, TODO
-
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 Modifier Constructor Description private
SqlValidatorSpooler(java.io.PrintWriter pw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlTester
getTester()
Returns a tester.-
Methods inherited from class org.apache.calcite.test.SqlValidatorTest
_testCharsetAndCollateMismatch, _testConvertAndTranslate, _testDyadicCollateCompare, _testDyadicCollateOperator, _testDyadicCompareCollateFails, _testGroupExpressionEquivalenceCorrelated, _testGroupExpressionEquivalenceParams, _testJoinUsing, _testLikeAndSimilarFails, _testSimpleCollate, _testValuesWithAggFuncs, _testWinPartClause, checkLarge, checkWinFuncExpWithWinClause, setUSLocale, subTestIntervalDayNegative, subTestIntervalDayPositive, subTestIntervalDayToHourNegative, subTestIntervalDayToHourPositive, subTestIntervalDayToMinuteNegative, subTestIntervalDayToMinutePositive, subTestIntervalDayToSecondNegative, subTestIntervalDayToSecondPositive, subTestIntervalHourNegative, subTestIntervalHourPositive, subTestIntervalHourToMinuteNegative, subTestIntervalHourToMinutePositive, subTestIntervalHourToSecondNegative, subTestIntervalHourToSecondPositive, subTestIntervalMinuteNegative, subTestIntervalMinutePositive, subTestIntervalMinuteToSecondNegative, subTestIntervalMinuteToSecondPositive, subTestIntervalMonthNegative, subTestIntervalMonthPositive, subTestIntervalSecondNegative, subTestIntervalSecondPositive, subTestIntervalYearNegative, subTestIntervalYearPositive, subTestIntervalYearToMonthNegative, subTestIntervalYearToMonthPositive, testAbstractConformance, testAggregateFilter, testAggregateFilterContainsAggregate, testAggregateFilterInHaving, testAggregateFilterNotBoolean, testAggregateFunctionInOver, testAggregateInGroupByFails, testAggregateInNonGroupBy, testAggregateInOrderByFails, testAggregateInsideOverClause, testAggregateInsideOverClause2, testAliasInGroupBy, testAliasInHaving, testAmbiguousColumn, testAmbiguousColumnInIn, testAndOrIllegalTypesFails, testAnyList, testAnyValueFunction, testArithmeticOperators, testArithmeticOperatorsFails, testArrayAssignment, testArrayConstructor, testArrayOfRecordType, testAsColumnList, testBetween, testBinaryString, testBinaryStringFails, testBind, testBindBetween, testBooleans, testBrackets, testCardinality, testCaseExpression, testCaseExpressionFails, testCaseExpressionTypes, testCaseInsensitive, testCaseInsensitiveInsert, testCaseInsensitiveSubQuery, testCaseInsensitiveTableAlias, testCaseInsensitiveTableAliasInGroupBy, testCaseInsensitiveTables, testCastBinaryLiteral, testCastFails, testCastRegisteredType, testCastToInterval, testCastTypeToType, testCharLength, testCharsetMismatch, testCoalesce, testCoalesceFails, testCoalesceWithoutRewrite, testCoalesceWithRewrite, testCollect, testCollectionTable, testCollectionTableWithCursorParam, testCollectionTableWithLateral, testCollectionTableWithLateral2, testColumnNotFound, testColumnNotFound2, testColumnNotFound3, testColumnNotFoundDidYouMean, testConcat, testConcatFails, testConcatWithCharset, testContains, testCorrelatingVariables, testCorrelationJoin, testCountCompositeFunction, testCountFunction, testCrossJoinOnFails, testCrossJoinUsingFails, testCubeBitSets, testCubeExpression, testCubeGrouping, testCustomColumnResolving, testCustomColumnResolvingWithView, testDateCompare, testDateTime, testDateTimeCast, testDatetimePlusNullInterval, testDelete, testDeleteBind, testDeleteBindExtendedColumn, testDeleteExtendedColumn, testDeleteExtendedColumnCollision, testDeleteExtendedColumnFailCollision, testDeleteExtendedColumnFailDuplicate, testDeleteExtendedColumnModifiableView, testDeleteExtendedColumnModifiableViewCollision, testDeleteExtendedColumnModifiableViewFailCollision, testDeleteExtendedColumnModifiableViewFailExtendedCollision, testDeleteModifiableView, testDoubleNoAlias, testDummy, testDuplicateColumnAliasIsOK, testDuplicateTableAliasFails, testElement, testEqualNotEqual, testEqualNotEqualFails, testExpandStar, testExplicitTable, testExtract, testFieldOrigin, testFloorCeil, testFromReferenceFails, testFunctionalDistinct, testFusion, testGeometry, testGroup, testGroupAgg, testGroupByCorrelatedColumn, testGroupBySystemFunction, testGroupExpressionEquivalence, testGroupExpressionEquivalenceId, testGroupExpressionEquivalenceLiteral, testGroupExpressionEquivalenceStringLiteral, testGroupId, testGrouping, testGroupingId, testGroupingSets, testHaving, testHavingBetween, testInlineWinDef, testInList, testInnerJoinWithoutUsingOrOnFails, testInsert, testInsertBind, testInsertBindExtendedColumn, testInsertBindExtendedColumnModifiableView, testInsertBindFailNullability, testInsertBindSubset, testInsertBindSubsetDisallowed, testInsertBindSubsetFailNullability, testInsertBindSubsetWithCustomInitializerExpressionFactory, testInsertBindView, testInsertBindViewFailExcludedColumn, testInsertBindWithCustomColumnResolving, testInsertBindWithCustomInitializerExpressionFactory, testInsertExtendedColumn, testInsertExtendedColumnCollision, testInsertExtendedColumnFailCollision, testInsertExtendedColumnFailDuplicate, testInsertExtendedColumnModifiableView, testInsertExtendedColumnModifiableViewCollision, testInsertExtendedColumnModifiableViewExtendedCollision, testInsertExtendedColumnModifiableViewFailCollision, testInsertExtendedColumnModifiableViewFailColumnCount, testInsertExtendedColumnModifiableViewFailConstraint, testInsertExtendedColumnModifiableViewFailExtendedCollision, testInsertExtendedColumnModifiableViewFailUnderlyingCollision, testInsertExtendedColumnModifiableViewUnderlyingCollision, testInsertFailCaseSensitivity, testInsertFailDataType, testInsertFailExcludedColumn, testInsertFailNullability, testInsertModifiableView, testInsertModifiableViewFailConstraint, testInsertModifiableViewPassConstraint, testInsertShouldNotCheckForDefaultValue, testInsertSubset, testInsertSubsetDisallowed, testInsertSubsetFailNullability, testInsertSubsetModifiableView, testInsertSubsetView, testInsertSubsetViewDisallowed, testInsertSubsetViewFailNullability, testInsertSubsetWithCustomInitializerExpressionFactory, testInsertView, testInsertViewFailNullability, testInsertWithCustomInitializerExpressionFactory, testInsertWithExtendedColumns, testInSubQuery, testIntervalCompare, testIntervalLiterals, testIntervalMillisConversion, testIntervalMonthsConversion, testIntervalOperators, testIntervalTimeUnitEnumeration, testInvalidFunction, testInvalidGroupBy, testInvalidGroupBy2, testInvalidGroupBy3, testInvalidWindowFunctionWithGroupBy, testIs, testIsASet, testIsFails, testJdbcFunctionCall, testJoinOnExistsCorrelated, testJoinOnIn, testJoinOnInCorrelated, testJoinOnInCorrelatedFails, testJoinOnScalarCorrelated, testJoinOnScalarFails, testJoinRowType, testJoinSubQuery, testJoinUsing, testJoinUsingDupColsFails, testJoinUsingIncompatibleDatatype, testJoinUsingInvalidColsFails, testJoinUsingThreeWay, testJsonArray, testJsonArrayAgg, testJsonExists, testJsonObject, testJsonObjectAgg, testJsonPredicate, testJsonQuery, testJsonValue, testLarge, testLastFunction, testLateral, testLeftOuterJoinWithAlias, testLexAndQuoting, testLexJava, testLexJavaKeyword, testLikeAndSimilar, testMemberOf, testMinMaxFunctions, testMinusDateOperator, testMonotonic, testMultipleDifferentAs, testMultipleSameAsPass, testMultiset, testMultisetConstructor, testMultisetSetOperators, testNameResolutionInValuesClause, testNaturalCrossJoinFails, testNaturalJoinCaseSensitive, testNaturalJoinIncompatibleDatatype, testNaturalJoinWithOnFails, testNaturalJoinWithUsing, testNestedAggFails, testNestedAggOver, testNestedFrom, testNonLocalStar, testNotIllegalTypeFails, testNull, testNullCast, testNullIf, testNumbers, testNumericOperators, testObscuredAliasFails, testOn, testOneWinFunc, testOperatorsSortedByPrecedence, testOrder, testOrderByColumn, testOrderDistinct, testOrderGroup, testOrderGroupDistinct, testOrderJoin, testOrderUnion, testOrdinalInGroupBy, testOverInOrderBy, testOverInPartitionBy, testOverlaps, testOverlay, testPartitionByColumnInJoinAlias, testPartitionByExpr, testPosition, testPrefix, testQuotedFunction, testRecordType, testRecordTypeElided, testRewriteWithColumnReferenceExpansion, testRewriteWithColumnReferenceExpansionAndFromAlias, testRewriteWithIdentifierExpansion, testRewriteWithLimitWithDynamicParameters, testRewriteWithLimitWithoutOrderBy, testRewriteWithOffsetWithoutOrderBy, testRewriteWithoutIdentifierExpansion, testRewriteWithUnionFetchWithoutOrderBy, testRolledUpColumnInHaving, testRolledUpColumnInWhere, testRollup, testRollupBitSets, testRollUpInGroupBy, testRollUpInJoin, testRollUpInOrderBy, testRollUpInWindow, testRow, testRowtype, testRowWithInvalidDotOperation, testRowWitValidDot, testSample, testScalars, testScalarsFails, testScalarSubQuery, testSchemaTableColumn, testSchemaTableColumnInGroupBy, testSchemaTableStar, testSelectAggregateOnRolledUpColumn, testSelectDistinct, testSelectExtendedColumnCollision, testSelectExtendedColumnDuplicate, testSelectExtendedColumnFailCollision, testSelectFailCaseSensitivity, testSelectRolledUpColumn, testSelectViewExtendedColumnCollision, testSelectViewExtendedColumnExtendedCollision, testSelectViewExtendedColumnFailCollision, testSelectViewExtendedColumnFailExtendedCollision, testSelectViewExtendedColumnFailUnderlyingCollision, testSelectViewExtendedColumnUnderlyingCollision, testSelectViewFailExcludedColumn, testSelectWithoutFrom, testSingleNoAlias, testStandardOperatorNamesAreUpperCase, testStarAliasFails, testStarDotIdFails, testStarIdentifier, testStarInFromFails, testStream, testStreamGroupBy, testStreamHaving, testStreamHop, testStreamJoin, testStreamOrderBy, testStreamSession, testStreamTumble, testStreamUnionAll, testStreamValues, testStreamWhere, testStringCompare, testStringCompareType, testStringLiteral, testStringLiteralBroken, testStructuredTypes, testSubMultisetOf, testSubQueryInOnClause, testSubstring, testSubstringFails, testSumInvalidArgs, testSumTooFewArgs, testSumTooManyArgs, testTableExtend, testTableNotFoundDidYouMean, testTimestampAddAndDiff, testTimestampAddNullInterval, testTranslate3, testTrim, testTrimFails, testTypeOfAs, testTypesLiterals, testUnionCountMismatchFails, testUnionCountMismatcWithValuesFails, testUnionNameResolution, testUnionTypeMismatchFails, testUnionTypeMismatchWithStarFails, testUnionTypeMismatchWithValuesFails, testUnnest, testUnnestArray, testUnnestArrayColumn, testUnnestWithOrdinality, testUnquotedBuiltInFunctionNames, testUpdateBind, testUpdateBindExtendedColumn, testUpdateBindExtendedColumnModifiableView, testUpdateExtendedColumn, testUpdateExtendedColumnCollision, testUpdateExtendedColumnFailCaseSensitivity, testUpdateExtendedColumnFailCollision, testUpdateExtendedColumnFailCollision2, testUpdateExtendedColumnFailDuplicate, testUpdateExtendedColumnModifiableView, testUpdateExtendedColumnModifiableViewCollision, testUpdateExtendedColumnModifiableViewFailCollision, testUpdateExtendedColumnModifiableViewFailConstraint, testUpdateExtendedColumnModifiableViewFailExtendedCollision, testUpdateExtendedColumnModifiableViewFailUnderlyingCollision, testUpdateFailCaseSensitivity, testUpdateFailDataType, testUpdateModifiableViewFailConstraint, testUpdateModifiableViewPassConstraint, testUpperLower, testUserDefinedConformance, testValidatorReportsOriginalQueryUsingReader, testValuesTypeMismatchFails, testWhere, testWhereReference, testWindowClause, testWindowClause2, testWindowClauseWithSubQuery, testWindowFunctions, testWindowFunctions2, testWindowFunctionsWithoutOver, testWindowNegative, testWindowPartial, testWith, testWithColumnAlias, testWithinGroup, testWithOrder, testWithOrderAgg, testWithOrderInParentheses, testWithSubQuery, testWithUnion, unnestMapMustNameColumnsKeyAndValueWhenNotAliased
-
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
-
SPOOLER_VALIDATOR
private static final SqlTestFactory SPOOLER_VALIDATOR
-
pw
private final java.io.PrintWriter pw
-
-
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
-
-