gpt4 book ai didi

json - Tableau json 格式

转载 作者:行者123 更新时间:2023-12-04 20:29:57 25 4
gpt4 key购买 nike

在 Tableau Public 的文档中,可以阅读

A single JSON object cannot exceed 128 MB.

When a single object top-level array exceeds 128 MB, you must convert it to a file where the JSON objects are defined one per line.



尝试将 (95 MB!) JSON 文件加载到 Tableau 时,出现错误:

Tableau encountered a single object larger than 128 MB in the JSON file. Please try again with a smaller JSON file.



我的文件是一个大数组,格式如下:
[
{"id":"1389406","updatedDate":"2018-01-31T10:17:31Z","createdDate":"2018-01-31T10:17:31Z","deleted":false,"Ids":["2466958"],"location":{"code":"bibd","name":"Main Library"},"status":{"code":"-","display":"AVAILABLE"},"barcode":"blah blah","callNumber":"TS","itemType":"In-house loan"},
{"id":"1389406","updatedDate":"2018-01-31T10:17:31Z","createdDate":"2018-01-31T10:17:31Z","deleted":false,"Ids":["2466958"],"location":{"code":"bibd","name":"Main Library"},"status":{"code":"-","display":"AVAILABLE"},"barcode":"blah blah","callNumber":"TS","itemType":"In-house loan"}
...
]

我该怎么做才能让 Tableau 接受此文件?

最佳答案

好吧,您基本上必须按照帮助文本的规定进行操作。 每行一个 JSON 对象。而已。 我试过了,但我忘了删除每行末尾的逗号 (,)。

您的文件应如下所示:

{"id":"1389406","updatedDate":"2018-01-31T10:17:31Z","createdDate":"2018-01-31T10:17:31Z","deleted":false,"Ids":["2466958"],"location":{"code":"bibd","name":"Main Library"},"status":{"code":"-","display":"AVAILABLE"},"barcode":"blah blah","callNumber":"TS","itemType":"In-house loan"}
{"id":"1389406","updatedDate":"2018-01-31T10:17:31Z","createdDate":"2018-01-31T10:17:31Z","deleted":false,"Ids":["2466958"],"location":{"code":"bibd","name":"Main Library"},"status":{"code":"-","display":"AVAILABLE"},"barcode":"blah blah","callNumber":"TS","itemType":"In-house loan"}

关于json - Tableau json 格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48548992/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com