Class TableAppendMacro

java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.validate.SqlUserDefinedTableMacro
org.apache.druid.sql.calcite.external.TableAppendMacro
All Implemented Interfaces:
org.apache.calcite.sql.SqlTableFunction, AuthorizableOperator

public class TableAppendMacro extends org.apache.calcite.sql.validate.SqlUserDefinedTableMacro implements AuthorizableOperator
Dynamic table append. Enables to use: TABLE(APPEND('t1','t2')); which will provide a union view of the operand tables.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.calcite.sql.SqlOperator
     
    static final org.apache.druid.sql.calcite.external.TableAppendMacro.OperatorConversion
     

    Fields inherited from class org.apache.calcite.sql.SqlOperator

    kind, MDX_PRECEDENCE, NL
  • Method Summary

    Modifier and Type
    Method
    Description
    computeResources(org.apache.calcite.sql.SqlCall call, boolean inputSourceTypeSecurityEnabled)
     
     
    org.apache.calcite.schema.TranslatableTable
    getTable(org.apache.calcite.sql.SqlOperatorBinding operatorBinding)
     

    Methods inherited from class org.apache.calcite.sql.validate.SqlUserDefinedTableMacro

    getOperandTypeChecker, getRowTypeInference

    Methods inherited from class org.apache.calcite.sql.SqlFunction

    deriveType, getFunctionType, getNameAsId, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifier

    Methods inherited from class org.apache.calcite.sql.SqlOperator

    acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.calcite.sql.SqlTableFunction

    tableCharacteristic
  • Field Details

    • OPERATOR_CONVERSION

      public static final org.apache.druid.sql.calcite.external.TableAppendMacro.OperatorConversion OPERATOR_CONVERSION
    • APPEND_TABLE_MACRO

      public static final org.apache.calcite.sql.SqlOperator APPEND_TABLE_MACRO
  • Method Details

    • getParamNames

      public List<String> getParamNames()
      Overrides:
      getParamNames in class org.apache.calcite.sql.validate.SqlUserDefinedTableMacro
    • getTable

      public org.apache.calcite.schema.TranslatableTable getTable(org.apache.calcite.sql.SqlOperatorBinding operatorBinding)
      Overrides:
      getTable in class org.apache.calcite.sql.validate.SqlUserDefinedTableMacro
    • computeResources

      public Set<ResourceAction> computeResources(org.apache.calcite.sql.SqlCall call, boolean inputSourceTypeSecurityEnabled)
      Specified by:
      computeResources in interface AuthorizableOperator