2015-09-28 84 views
0

我試圖通過bq命令 將日誌從Google Cloud Storage加載到BigQuery,並且出現了「無法將值轉換爲字符串」的錯誤。bq加載錯誤「無法將值轉換爲字符串」

我的例子中數據

{"ids":"1234,5678"} 
{"ids":1234} 

我的例子架構

[ 
    { "name":"ids", "type":"string" } 
] 

似乎ID不能由無報價單在轉換ID。 數據由fluent-plugin-s3製作,但由逗號連接的多個ID可以用引號綁定,而不是單個id。

如何將這些數據加載到BigQuery?

在此先感謝

+0

您需要將您的數據,包括像串號。 – Pentium10

+0

在這種情況下讓我改造如何更好? – ka2u

+0

那麼檢查可以幫助你的不同fluentd插件,也許https://github.com/lob/fluent-plugin-json-transform – Pentium10

回答

相關問題