gpt4 book ai didi

azure - 如何使用内联摄取将 Json 写入表中,而不使用逗号作为 Json 中的分隔符

转载 作者:行者123 更新时间:2023-12-03 02:12:03 31 4
gpt4 key购买 nike

我想将以下值写入表中使用内联摄取。

.ingest inline into table Purchases1 <|
{"19node_0x0101010002":{"values":{"nodeValue":"11139","timestampTssReceived":"2022-07-20T09:13:18.4590000Z"}}},xxx,30

但是 json 会像下面的 resalt 一样被逗号分割,是否有一些方法可以避免逗号作为此 json 中的分割符?

.create table Purchases2 (name: dynamic, country: string, age: long)

Purchases2

enter image description here

最佳答案

如文档 ( ingest inline command (push) ) 中所示,内联摄取支持 with ( IngestionPropertyName = IngestionPropertyValue [, ...] )

您可以将数据提取为 json 或其他分隔格式(例如 psv)

埃因霍温
.ingest inline into table Purchases with (format = "psv") <|
{"19node_0x0101010002":{"values":{"nodeValue":"11139","timestampTssReceived":"2022-07-20T09:13:18.4590000Z"}}}|xxx|30
JSON
.ingest inline into table Purchases with (format = "json") <|
{"name": {"19node_0x0101010002":{"values":{"nodeValue":"11139","timestampTssReceived":"2022-07-20T09:13:18.4590000Z"}}}, "country": "xxx", "age": 30}

关于azure - 如何使用内联摄取将 Json 写入表中,而不使用逗号作为 Json 中的分隔符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73049613/

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