Class SqlEngines

java.lang.Object
org.apache.druid.sql.calcite.run.SqlEngines

public class SqlEngines extends Object
  • 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 the specialContextKeys collection. Returns quietly if the context is OK; throws ValidationException if there is a problem. This is a helper function used by SqlEngine.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.