public class SqlFunctionConverter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SqlFunctionConverter.CalciteUDAF |
Constructor and Description |
---|
SqlFunctionConverter() |
Modifier and Type | Method and Description |
---|---|
static ASTNode |
buildAST(org.apache.calcite.sql.SqlOperator op,
List<ASTNode> children) |
static ASTNode |
buildAST(org.apache.calcite.sql.SqlOperator op,
List<ASTNode> children,
int i)
Build AST for flattened Associative expressions ('and', 'or').
|
static org.apache.calcite.sql.SqlAggFunction |
getCalciteAggFn(String hiveUdfName,
com.google.common.collect.ImmutableList<org.apache.calcite.rel.type.RelDataType> calciteArgTypes,
org.apache.calcite.rel.type.RelDataType calciteRetType) |
static org.apache.calcite.sql.SqlOperator |
getCalciteFn(String hiveUdfName,
com.google.common.collect.ImmutableList<org.apache.calcite.rel.type.RelDataType> calciteArgTypes,
org.apache.calcite.rel.type.RelDataType calciteRetType,
boolean deterministic) |
static org.apache.calcite.sql.SqlOperator |
getCalciteOperator(String funcTextName,
GenericUDF hiveUDF,
com.google.common.collect.ImmutableList<org.apache.calcite.rel.type.RelDataType> calciteArgTypes,
org.apache.calcite.rel.type.RelDataType retType) |
static GenericUDF |
getHiveUDF(org.apache.calcite.sql.SqlOperator op,
org.apache.calcite.rel.type.RelDataType dt,
int argsLength) |
public static org.apache.calcite.sql.SqlOperator getCalciteOperator(String funcTextName, GenericUDF hiveUDF, com.google.common.collect.ImmutableList<org.apache.calcite.rel.type.RelDataType> calciteArgTypes, org.apache.calcite.rel.type.RelDataType retType) throws SemanticException
SemanticException
public static GenericUDF getHiveUDF(org.apache.calcite.sql.SqlOperator op, org.apache.calcite.rel.type.RelDataType dt, int argsLength)
public static ASTNode buildAST(org.apache.calcite.sql.SqlOperator op, List<ASTNode> children)
public static ASTNode buildAST(org.apache.calcite.sql.SqlOperator op, List<ASTNode> children, int i)
public static org.apache.calcite.sql.SqlOperator getCalciteFn(String hiveUdfName, com.google.common.collect.ImmutableList<org.apache.calcite.rel.type.RelDataType> calciteArgTypes, org.apache.calcite.rel.type.RelDataType calciteRetType, boolean deterministic) throws CalciteSemanticException
CalciteSemanticException
public static org.apache.calcite.sql.SqlAggFunction getCalciteAggFn(String hiveUdfName, com.google.common.collect.ImmutableList<org.apache.calcite.rel.type.RelDataType> calciteArgTypes, org.apache.calcite.rel.type.RelDataType calciteRetType)
Copyright © 2017 The Apache Software Foundation. All rights reserved.