Class ZetaSqlCalciteTranslationUtils

java.lang.Object
org.apache.beam.sdk.extensions.sql.zetasql.ZetaSqlCalciteTranslationUtils

@Internal public final class ZetaSqlCalciteTranslationUtils extends Object
Utility methods for ZetaSQL invalid input: '<'=> Calcite translation.

Unsupported ZetaSQL types: INT32, UINT32, UINT64, FLOAT, ENUM (internal), PROTO, GEOGRAPHY

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BigDecimal
     
    static final BigDecimal
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ZETASQL_NUMERIC_MAX_VALUE

      public static final BigDecimal ZETASQL_NUMERIC_MAX_VALUE
    • ZETASQL_NUMERIC_MIN_VALUE

      public static final BigDecimal 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)