如何将换行分隔的 JSON 导入 Navicat 或 Bigquery



我正在尝试将 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

BigQuery 支持嵌套/重复字段,因此您可以使用 DUPLICATE 模式的 STRING 类型的字段

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

相关内容

  • 没有找到相关文章

最新更新