Class DruidUserDefinedTableMacro
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.BaseUserDefinedTableMacro
org.apache.druid.sql.calcite.external.SchemaAwareUserDefinedTableMacro
org.apache.druid.sql.calcite.external.DruidUserDefinedTableMacro
- All Implemented Interfaces:
org.apache.calcite.sql.SqlTableFunction,AuthorizableOperator
- Direct Known Subclasses:
DruidExternTableMacro
public class DruidUserDefinedTableMacro
extends SchemaAwareUserDefinedTableMacro
implements AuthorizableOperator
Base class for input-source-specific table functions with arguments derived from
a catalog external table definition. Such functions work in conjunction with the
EXTEND key word to provide a schema. Example of the HTTP form:
INSERT INTO myTable SELECT ...
FROM TABLE(http(
userName => 'bob',
password => 'secret',
uris => ARRAY['http:foo.com/bar.csv'],
format => 'csv'))
EXTEND (x VARCHAR, y VARCHAR, z BIGINT)
PARTITIONED BY ...
This version
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.druid.sql.calcite.external.SchemaAwareUserDefinedTableMacro
SchemaAwareUserDefinedTableMacro.ExtendedTableMacro, SchemaAwareUserDefinedTableMacro.ShimTableMacro -
Field Summary
Fields inherited from class org.apache.druid.sql.calcite.external.BaseUserDefinedTableMacro
macroFields inherited from class org.apache.calcite.sql.SqlOperator
kind, MDX_PRECEDENCE, NL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeResources(org.apache.calcite.sql.SqlCall call, boolean inputSourceTypeSecurityEnabled) Methods inherited from class org.apache.druid.sql.calcite.external.SchemaAwareUserDefinedTableMacro
rewriteCallMethods inherited from class org.apache.druid.sql.calcite.external.BaseUserDefinedTableMacro
convertArguments, getTableMethods inherited from class org.apache.calcite.sql.validate.SqlUserDefinedTableMacro
getOperandTypeChecker, getParamNames, getRowTypeInferenceMethods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifierMethods 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, validRexOperandsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.sql.SqlTableFunction
tableCharacteristic
-
Constructor Details
-
DruidUserDefinedTableMacro
-
-
Method Details
-
computeResources
public Set<ResourceAction> computeResources(org.apache.calcite.sql.SqlCall call, boolean inputSourceTypeSecurityEnabled) - Specified by:
computeResourcesin interfaceAuthorizableOperator
-