public class TestBuilder.SchemaTestBuilder extends TestBuilder
TestBuilder.BaselineQueryTestBuilder, TestBuilder.CSVTestBuilder, TestBuilder.JSONTestBuilder, TestBuilder.SchemaTestBuilderbaselineColumns, baselineTypeMap| Modifier and Type | Method and Description |
|---|---|
TestBuilder |
baselineColumns(String... columns)
This setting has a slightly different impact on the test depending on some of the other
configuration options are set.
|
TestBuilder |
baselineRecords(List<Map<String,Object>> materializedRecords)
This can be used in cases where we want to avoid issues with the assumptions made by the test framework.
|
TestBuilder |
baselineValues(Object... objects)
This method is used to pass in a simple list of values for a single record verification without
the need to create a CSV or JSON file to store the baseline.
|
List<org.apache.commons.lang3.tuple.Pair<SchemaPath,TypeProtos.MajorType>> |
getExpectedSchema() |
protected UserBitShared.QueryType |
getValidationQueryType() |
approximateEquality, approximateEquality, baselineTypes, baselineValuesForSingleColumn, build, convertToLocalDateTime, convertToLocalTimestamp, csvBaselineFile, expectsEmptyResultSet, expectsNumBatches, expectsNumRecords, go, highPerformanceComparison, jsonBaselineFile, listOf, mapOf, mapOfObject, optionSettingQueriesForBaseline, optionSettingQueriesForBaseline, optionSettingQueriesForTestQuery, optionSettingQueriesForTestQuery, ordered, parsePath, physicalPlanBaseline, physicalPlanBaselineQueryFromFile, physicalPlanFromFile, preparedStatement, reset, schemaBaseLine, schemaBaseLine, sqlBaselineQuery, sqlBaselineQuery, sqlBaselineQueryFromFile, sqlQuery, sqlQuery, sqlQueryFromFile, unOrderedpublic TestBuilder baselineColumns(String... columns)
TestBuilderbaselineColumns in class TestBuilderpublic TestBuilder baselineRecords(List<Map<String,Object>> materializedRecords)
TestBuilderbaselineRecords in class TestBuildermaterializedRecords - - a list of maps representing materialized resultspublic TestBuilder baselineValues(Object... objects)
TestBuilderbaselineValues in class TestBuilderobjects - - the baseline values to validateprotected UserBitShared.QueryType getValidationQueryType()
getValidationQueryType in class TestBuilderpublic List<org.apache.commons.lang3.tuple.Pair<SchemaPath,TypeProtos.MajorType>> getExpectedSchema()
getExpectedSchema in class TestBuilderCopyright © 2022 The Apache Software Foundation. All rights reserved.