org.apache.calcite.sql.validate.SqlValidatorException Java Examples
The following examples show how to use
org.apache.calcite.sql.validate.SqlValidatorException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PushDownExecutor.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
private static boolean isExpectedCause(SQLException sqlException) { Preconditions.checkArgument(sqlException != null); Throwable rootCause = ExceptionUtils.getRootCause(sqlException); //SqlValidatorException is not an excepted exception in the origin design.But in the multi pass scene, //query pushdown may create tables, and the tables are not in the model, so will throw SqlValidatorException. boolean isPushDownUpdateEnabled = KylinConfig.getInstanceFromEnv().isPushDownUpdateEnabled(); if (isPushDownUpdateEnabled) { return (rootCause instanceof NoRealizationFoundException // || rootCause instanceof RoutingIndicatorException || rootCause instanceof SqlValidatorException); // } else { if (rootCause instanceof KylinTimeoutException) return false; if (rootCause instanceof AccessDeniedException) { return false; } if (rootCause instanceof RoutingIndicatorException) { return true; } if (rootCause instanceof CompileException) { return true; } if (QueryContextFacade.current().isWithoutSyntaxError()) { logger.warn("route to push down for met error when running current query", sqlException); return true; } } return false; }
Example #2
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("PARTITION BY expression should not contain OVER clause") ExInst<SqlValidatorException> partitionbyShouldNotContainOver();
Example #3
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Aggregate expressions cannot be nested") ExInst<SqlValidatorException> nestedAggIllegal();
Example #4
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Call to auxiliary group function ''{0}'' must have matching call to group function ''{1}'' in GROUP BY clause") ExInst<SqlValidatorException> auxiliaryWithoutMatchingGroupCall(String func1, String func2);
Example #5
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Cannot override window attribute") ExInst<SqlValidatorException> cannotOverrideWindowAttribute();
Example #6
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Cannot INSERT into generated column ''{0}''") ExInst<SqlValidatorException> insertIntoAlwaysGenerated(String a0);
Example #7
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Type mismatch in column {0,number} of {1}") ExInst<SqlValidatorException> columnTypeMismatchInSetop(int a0, String a1);
Example #8
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Upper frame boundary cannot be PRECEDING when lower boundary is CURRENT ROW") ExInst<SqlValidatorException> currentRowPrecedingError();
Example #9
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("WITHIN GROUP must not contain aggregate expression") ExInst<SqlValidatorException> aggregateInWithinGroupIllegal();
Example #10
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("FILTER must not contain aggregate expression") ExInst<SqlValidatorException> aggregateInFilterIllegal();
Example #11
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Cannot use DISALLOW PARTIAL with window based on RANGE") ExInst<SqlValidatorException> cannotUseDisallowPartialWithRange();
Example #12
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Column ''{0}'' matched using NATURAL keyword or USING clause has incompatible types: cannot compare ''{1}'' to ''{2}''") ExInst<SqlValidatorException> naturalOrUsingColumnNotCompatible(String a0, String a1, String a2);
Example #13
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Interval leading field precision ''{0,number,#}'' out of range for {1}") ExInst<SqlValidatorException> intervalStartPrecisionOutOfRange(int a0, String a1);
Example #14
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Function ''{0}'' can only be used in MATCH_RECOGNIZE") ExInst<SqlValidatorException> functionMatchRecognizeOnly(String call);
Example #15
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Streaming aggregation requires at least one monotonic expression in GROUP BY clause") ExInst<SqlValidatorException> streamMustGroupByMonotonic();
Example #16
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("INNER, LEFT, RIGHT or FULL join requires a condition (NATURAL keyword or ON or USING clause)") ExInst<SqlValidatorException> joinRequiresCondition();
Example #17
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Cannot use RUNNING/FINAL in DEFINE ''{0}''") ExInst<SqlValidatorException> patternRunningFunctionInDefine(String call);
Example #18
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Binary literal string must contain an even number of hexits") ExInst<SqlValidatorException> binaryLiteralOdd();
Example #19
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Table or column alias must be a simple identifier") ExInst<SqlValidatorException> aliasMustBeSimpleIdentifier();
Example #20
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Group function ''{0}'' can only appear in GROUP BY clause") ExInst<SqlValidatorException> groupFunctionMustAppearInGroupByClause(String funcName);
Example #21
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Rolled up column ''{0}'' is not allowed in {1}") ExInst<SqlValidatorException> rolledUpNotAllowed(String column, String context);
Example #22
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Numeric literal ''{0}'' out of range") ExInst<SqlValidatorException> numberLiteralOutOfRange(String a0);
Example #23
Source File: RexCallBinding.java From Bats with Apache License 2.0 | 4 votes |
public CalciteException newError( Resources.ExInst<SqlValidatorException> e) { return SqlUtil.newContextException(SqlParserPos.ZERO, e); }
Example #24
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Schema ''{0}'' not found") ExInst<SqlValidatorException> schemaNotFound(String name);
Example #25
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Interval must be non-negative ''{0}''") ExInst<SqlValidatorException> intervalMustBeNonNegative(String call);
Example #26
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Cannot compare values of types ''{0}'', ''{1}''") ExInst<SqlValidatorException> typeNotComparableNear(String a0, String a1);
Example #27
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Map requires an even number of arguments") ExInst<SqlValidatorException> mapRequiresEvenArgCount();
Example #28
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("View ''{0}'' already exists and REPLACE not specified") ExInst<SqlValidatorException> viewExists(String name);
Example #29
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("SELECT must have a FROM clause") ExInst<SqlValidatorException> selectMissingFrom();
Example #30
Source File: CalciteResource.java From Bats with Apache License 2.0 | 4 votes |
@BaseMessage("Type ''{0}'' not found") ExInst<SqlValidatorException> typeNotFound(String name);