beam-sql

What is the equivalent Data type for Numeric in apache.beam.sdk.schemas.Schema.FieldType

时光总嘲笑我的痴心妄想 提交于 2021-01-29 11:25:08
问题 Trying to write the data into BigQuery table using BeamSQL. To write the data we need schema of that data. Used org.apache.beam.sdk.schemas for defining schema of the data collection. We have Numeric data type column in that data collection. Want to know, what is the equivalent data type for Numeric in org.apache.beam.sdk.schemas.Schema.FieldType class. Some one please help me use the equivalent schema of Numeric data type. 回答1: BeamSQL's Decimal can present BigQuery's NUMERIC. BeamSQL's

ZetaSQL Sample Using Apache beam

一曲冷凌霜 提交于 2020-01-25 06:46:05
问题 I am Facing Issues while Using ZetaSQL in Apache beam Framework (2.17.0-SNAPSHOT). After Going through documentation of the apache beam I am not able to find any sample for ZetaSQL. I tried to add the Planner: options.setPlannerName("org.apache.beam.sdk.extensions.sql.zetasql.ZetaSQLQueryPlanner"); But Still Facing Issue, Snippet is added below for help. ``` String sql = "SELECT CAST (1243 as INT64), " + "CAST ('2018-09-15 12:59:59.000000+00' as TIMESTAMP), " + "CAST ('string' as STRING);";