Google bigquery BigQuery-加载带有空值的JSON字段
我正在尝试使用java客户端库将json文件加载到Bigquery中。一些Json字段填充为null。加载失败,Bigquery出现以下错误Google bigquery BigQuery-加载带有空值的JSON字段,google-bigquery,Google Bigquery,我正在尝试使用java客户端库将json文件加载到Bigquery中。一些Json字段填充为null。加载失败,Bigquery出现以下错误 { "reason": "invalid", "location": "File: 0 / Offset:0 / Line:1 / Column:1666 / Field:field1", "message": "flat value specified for record field" } 我的模式是这样的 { "na
{
"reason": "invalid",
"location": "File: 0 / Offset:0 / Line:1 / Column:1666 / Field:field1",
"message": "flat value specified for record field"
}
我的模式是这样的
{
"name": "field1",
"type": "RECORD",
"mode": "NULLABLE",
"fields": [{
"name": "field2",
"type": "TIMESTAMP",
"mode": "REQUIRED"
},
{
"name": "field3",
"type": "TIMESTAMP",
"mode": "REQUIRED"
}]
}
我的Json是这样的
{
...
"field1": null,
...
}
我看到了这两个链接
及
不幸的是,我无法更改json以删除具有空值的字段。有没有办法在Bigquery中加载这样的json?我在文档中找不到多少信息。请给我指一些文档或一些解决方法。感谢您的时间。这是我们当前JSON导入的一个已知问题。不幸的是,加载空记录的唯一方法是从JSON中完全忽略该记录,而不是显式地将其设置为空。我将在内部提高该错误的优先级,但可能无法立即修复。感谢您的确认Jeremy。Jeremy,这仍然是一个已知问题还是已修复?谢谢。不过,它还没有修好。。?两年后?