Class ZetaSqlCalciteTranslationUtils
java.lang.Object
org.apache.beam.sdk.extensions.sql.zetasql.ZetaSqlCalciteTranslationUtils
Utility methods for ZetaSQL invalid input: '<'=> Calcite translation.
Unsupported ZetaSQL types: INT32, UINT32, UINT64, FLOAT, ENUM (internal), PROTO, GEOGRAPHY
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigDecimal
static final BigDecimal
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataType
toCalciteType
(com.google.zetasql.Type type, boolean nullable, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexBuilder rexBuilder) static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode
toRexNode
(com.google.zetasql.Value value, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexBuilder rexBuilder) static com.google.zetasql.Type
toZetaSqlType
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataType calciteType)
-
Field Details
-
ZETASQL_NUMERIC_MAX_VALUE
-
ZETASQL_NUMERIC_MIN_VALUE
-
ZETASQL_NUMERIC_SCALE
public static final int ZETASQL_NUMERIC_SCALE- See Also:
-
-
Method Details
-
toZetaSqlType
public static com.google.zetasql.Type toZetaSqlType(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataType calciteType) -
toCalciteType
public static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.type.RelDataType toCalciteType(com.google.zetasql.Type type, boolean nullable, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexBuilder rexBuilder) -
toRexNode
public static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode toRexNode(com.google.zetasql.Value value, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexBuilder rexBuilder)
-