Class DruidOperatorTable

java.lang.Object
org.apache.druid.sql.calcite.planner.DruidOperatorTable
All Implemented Interfaces:
org.apache.calcite.sql.SqlOperatorTable

public class DruidOperatorTable extends Object implements org.apache.calcite.sql.SqlOperatorTable
  • Field Details

  • Constructor Details

  • Method Details

    • lookupAggregator

      @Nullable public SqlAggregator lookupAggregator(org.apache.calcite.sql.SqlAggFunction aggFunction)
    • lookupOperatorConversion

      @Nullable public SqlOperatorConversion lookupOperatorConversion(org.apache.calcite.sql.SqlOperator operator)
    • lookupOperatorOverloads

      public void lookupOperatorOverloads(org.apache.calcite.sql.SqlIdentifier opName, org.apache.calcite.sql.SqlFunctionCategory category, org.apache.calcite.sql.SqlSyntax syntax, List<org.apache.calcite.sql.SqlOperator> operatorList, org.apache.calcite.sql.validate.SqlNameMatcher nameMatcher)
      Specified by:
      lookupOperatorOverloads in interface org.apache.calcite.sql.SqlOperatorTable
    • getOperatorList

      public List<org.apache.calcite.sql.SqlOperator> getOperatorList()
      Specified by:
      getOperatorList in interface org.apache.calcite.sql.SqlOperatorTable
    • isFunctionSyntax

      public static boolean isFunctionSyntax(org.apache.calcite.sql.SqlSyntax syntax)
      Checks if a given SqlSyntax value represents a valid function syntax. Treats anything other than prefix/suffix/binary syntax as function syntax.
      Parameters:
      syntax - The SqlSyntax value to be checked.
      Returns:
      true if the syntax is valid for a function, false otherwise.