工作ID job_uaq76dwI2pw8anO4qNP8xMBTjQY
工作申报:
job, err := bqClient.Jobs.Insert(_PROJECT_ID_, &bigquery.Job{
Configuration: &bigquery.JobConfiguration{
Query: &bigquery.JobConfigurationQuery{
UseLegacySql: false,
CreateDisposition: "CREATE_IF_NEEDED",
Query: reportQuery.query,
WriteDisposition: "WRITE_TRUNCATE",
SchemaUpdateOptions: []string{"ALLOW_FIELD_RELAXATION", "ALLOW_FIELD_ADDITION"},
DestinationTable: &bigquery.TableReference{
ProjectId: _PROJECT_ID_,
DatasetId: dataset,
TableId: "name$" + reportQuery.tableDecorator,
},
},
},
}).Do()
作业以错误结束
2017/07/19 11:41:27 ERROR: Encountered " "WITH" "WITH "" at line 1, column 1. Was expecting: <EOF>
[Try using standard SQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql)]
查询以多个WITH ... AS (...)
开头。
我该怎么办?
答案 0 :(得分:0)
如此处所述Use standard SQL queries in java bigquery API
解决方法是将-unexpected '=' in -ifelse( ((a[j]-=1474161415+900-(i-1)) &
(a[j]-1474161415+900-i)) , a[j]=--
放在查询