gpt4 book ai didi

Azure 数据工厂数据流不存在 JSON 格式的空值

转载 作者:行者123 更新时间:2023-12-02 08:30:18 27 4
gpt4 key购买 nike

我正在寻找如何使用 Azure 数据工厂数据流事件呈现空值。目前,我正在使用标准数据流对 Azure SQL 数据库中的数据进行建模,并将其以 JSON 格式拖动到 Blob 存储中。 But if the dataset source has a null value, the column in the row is skipped in JSON

更新: Here is the results of having data, having entry string as data and null value .

请给我一些有关如何继续的建议,以解决问题。对于复制事件,我没有遇到同样的问题 - 空值以“”表示

谢谢指教!干杯,韦塞拉

最佳答案

我现在有一个解决方案,你可以引用一下。

我使用如下模式重新创建一个表,列 setNum 具有空值:

enter image description here

在数据流中,我添加了一个 DerivedColumn 来帮助我们将 null 值转换为 ''。

enter image description here

表达式: iifNull(setNum,''):如果setNum为null,则将其替换为''。

enter image description here

现在,运行管道, enter image description here

检查blob中的数据:

enter image description here

希望这有帮助。

关于Azure 数据工厂数据流不存在 JSON 格式的空值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61478714/

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