@Internal public final class ZetaSqlUtils extends java.lang.Object
Unsupported ZetaSQL types: INT32, UINT32, UINT64, FLOAT, ENUM, PROTO, GEOGRAPHY TODO[BEAM-8630]: support ZetaSQL types: DATE, TIME, DATETIME
Modifier and Type | Method and Description |
---|---|
static com.google.zetasql.Type |
beamFieldTypeToZetaSqlType(Schema.FieldType fieldType) |
static com.google.zetasql.Value |
beamRowToZetaSqlStructValue(Row row,
Schema schema) |
static com.google.zetasql.StructType |
beamSchemaToZetaSqlStructType(Schema schema) |
static com.google.zetasql.Value |
javaObjectToZetaSqlValue(java.lang.Object object,
Schema.FieldType fieldType) |
static org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.type.SqlTypeName |
zetaSqlTypeToCalciteTypeName(com.google.zetasql.ZetaSQLType.TypeKind zetaSqlType) |
static java.lang.Object |
zetaSqlValueToJavaObject(com.google.zetasql.Value value,
Schema.FieldType fieldType,
boolean verifyValues) |
public static org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.type.SqlTypeName zetaSqlTypeToCalciteTypeName(com.google.zetasql.ZetaSQLType.TypeKind zetaSqlType)
public static com.google.zetasql.Type beamFieldTypeToZetaSqlType(Schema.FieldType fieldType)
public static com.google.zetasql.StructType beamSchemaToZetaSqlStructType(Schema schema)
public static com.google.zetasql.Value javaObjectToZetaSqlValue(java.lang.Object object, Schema.FieldType fieldType)
public static com.google.zetasql.Value beamRowToZetaSqlStructValue(Row row, Schema schema)
public static java.lang.Object zetaSqlValueToJavaObject(com.google.zetasql.Value value, Schema.FieldType fieldType, boolean verifyValues)