Class SqlOperators
java.lang.Object
org.apache.beam.sdk.extensions.sql.zetasql.translation.SqlOperators
A separate SqlOperators table for those functions that do not exist or not compatible with
Calcite. Most of functions within this class is copied from Calcite.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.validate.SqlUserDefinedFunction
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator
createStringAggOperator
(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedFunctionCallBase aggregateFunctionCall) static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlFunction
createZetaSqlFunction
(String name, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.type.SqlTypeName returnType) Create a dummy SqlFunction of type OTHER_FUNCTION from given function name and return type.
-
Field Details
-
ZETASQL_TIMESTAMP_ADD
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator ZETASQL_TIMESTAMP_ADD -
ARRAY_AGG_FN
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator ARRAY_AGG_FN -
START_WITHS
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator START_WITHS -
CONCAT
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator CONCAT -
REPLACE
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator REPLACE -
TRIM
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator TRIM -
LTRIM
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator LTRIM -
RTRIM
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator RTRIM -
SUBSTR
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator SUBSTR -
REVERSE
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator REVERSE -
CHAR_LENGTH
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator CHAR_LENGTH -
ENDS_WITH
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator ENDS_WITH -
LIKE
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator LIKE -
VALIDATE_TIMESTAMP
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator VALIDATE_TIMESTAMP -
VALIDATE_TIME_INTERVAL
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator VALIDATE_TIME_INTERVAL -
TIMESTAMP_OP
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator TIMESTAMP_OP -
DATE_OP
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator DATE_OP -
BIT_XOR
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator BIT_XOR -
COUNTIF
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator COUNTIF -
CAST_OP
public static final org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.validate.SqlUserDefinedFunction CAST_OP
-
-
Constructor Details
-
SqlOperators
public SqlOperators()
-
-
Method Details
-
createStringAggOperator
public static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlOperator createStringAggOperator(com.google.zetasql.resolvedast.ResolvedNodes.ResolvedFunctionCallBase aggregateFunctionCall) -
createZetaSqlFunction
public static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.SqlFunction createZetaSqlFunction(String name, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.sql.type.SqlTypeName returnType) Create a dummy SqlFunction of type OTHER_FUNCTION from given function name and return type. These functions will be unparsed in eitherBeamZetaSqlCalcRel
(for built-in functions) orBeamCalcRel
(for user-defined functions).
-