0
作業ID job_uaq76dwI2pw8anO4qNP8xMBTjQY
UseLegacySql:在JobConfigurationQuery錯誤選項被忽略
招聘聲明:
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 (...)
。
我該怎麼辦?
入住埃利奧特在此線程答案:https://stackoverflow.com/questions/44146438/use-standard-sql -queries功能於Java的BigQuery的API。它對你有幫助嗎? –
是的它修好了! –
[在java bigquery API中使用標準SQL查詢]的可能重複(https://stackoverflow.com/questions/44146438/use-standard-sql-queries-in-java-bigquery-api) –