12
請檢查我的再三領域的理解在下面的例子:Google Bigquery中的REPEATED字段是什麼意思?
{
"title": "History of Alphabet",
"author": [
{
"name": "Larry"
},
]
}
此JSON具有架構:
[
{
"name": "title",
"type": "STRING"
},
{
"name": "author",
"type": "RECORD",
"fields": [
{
"name": "name",
"type": "STRING"
}
]
}
]
但以下JSON
{
"title": "History of Alphabet",
"author": ["Larry", "Steve", "Eric"]
}
具有架構:
[
{
"name": "title",
"type": "STRING"
},
{
"name": "author",
"type": "STRING",
"mode": "REPEATED"
}
]
這是正確的嗎?
nb:我試圖通過,但無法找到任何解釋。
感謝您提到模式是一個數組。 –
很好解釋! – Harinder