0

我正在尝试将 ndjson 文件导入 Navicat 或 Bigquery。

似乎都没有允许“字符串数组”的选项

有什么办法可以做到这一点?或者是否有其他工具可以做到这一点。JSON Value UUID string databaseID integer title string alternativeTitle array of strings contributor array of objects contributor.contributorName string contributor.contributorType string contributorRole array of strings contributor.contributorURI string date array of strings dateStart string dateEnd string language array of strings description string note array of objects note.type string note.text string subjectTopical array of objects subjectTopical.text string subjectTopical.URI string subjectName array of objects subjectName.text string subjectName.URI string subjectGeographic array of objects subjectGeographic.text string subjectGeographic.URI string subjectTemporal array of objects subjectTemporal.text string subjectTemporal.URI string subjectTitle array of objects subjectTitle.text string subjectTitle.URI string resourceType array of strings genre array of objects genre.text string genre.URI string identifierBNumber string identifierAccessionNumber string identifierCallNumber string identifierISBN string identifierISSN string identifierInterviewID string identifierPostcardID string identifierLCCN string identifierOCLCRLIN string physicalDescriptionExtent array of strings physicalDescriptionForm array of strings publisher array of strings placeOfPublication array of strings collectionUUID string containerUUID string collectionTitle string containerTitle string parentHierarchy string numberOfCaptures integer - string captures array of strings digtalCollectionsURL string

4

1 回答 1

1

BigQuery 支持嵌套/重复字段,因此您可以在 REPEATED 模式下拥有 STRING 类型的字段

在https://cloud.google.com/bigquery/preparing-data-for-bigquery中查看更多信息,尤其是configuration.load.schema.fields[].modehttps://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load中查看

于 2016-02-18T19:31:54.567 回答