Package org.apache.druid.sql.calcite.run
Class SqlEngines
java.lang.Object
org.apache.druid.sql.calcite.run.SqlEngines
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DruidExceptiongenerateUnrecognizedFeatureException(String engineName, EngineFeature unrecognizedFeature) This is a helper function that provides a developer-friendly exception when an engine cannot recognize the feature.static voidValidates that a provided query context does not have any of the internal, special context keys listed in thespecialContextKeyscollection.
-
Constructor Details
-
SqlEngines
public SqlEngines()
-
-
Method Details
-
validateNoSpecialContextKeys
public static void validateNoSpecialContextKeys(Map<String, Object> queryContext, Set<String> specialContextKeys) Validates that a provided query context does not have any of the internal, special context keys listed in thespecialContextKeyscollection. Returns quietly if the context is OK; throwsValidationExceptionif there is a problem. This is a helper function used bySqlEngine.validateContext(java.util.Map<java.lang.String, java.lang.Object>)implementations. -
generateUnrecognizedFeatureException
public static DruidException generateUnrecognizedFeatureException(String engineName, EngineFeature unrecognizedFeature) This is a helper function that provides a developer-friendly exception when an engine cannot recognize the feature.
-