如何保留使用Serde的胶水中的JSON键的情况?

发布于 2025-01-22 12:28:31 字数 403 浏览 2 评论 0原文

我创建了一个胶水表,该表将JSON转换为Parquet文件。在列之一中,该列定义为 map< string,string> 具有嵌套的json。我看到嵌套的json键正在得到无论输入如何,转换为小写始终。

例如:

 "payload": {
          "cpr_Rate": "10",
          "type":"cpr"
        }

当我读取Parquet文件时,我会看到cpr_rate将转换为cpr_rate所有较低案例。 /代码>。我尝试使用case.inesive' =“ false”属性,但它也没有起作用。如果保留我的输入的情况。

I have created a glue table which converts the the json to parquet files .In one of the column which is defined as Map<String,String> having a nested json .I see the nested json key is getting converted to lowercase always irrespective of input .

For example :

 "payload": {
          "cpr_Rate": "10",
          "type":"cpr"
        }

When I read the parquet file I see cpr_Rate gets converted to cpr_rate all lower case .I am using org.openx.data.jsonserde.JsonSerDe. I tried using case.insensitive" = "FALSE" property too but it did not work either .I am open to change any other type of serde too if that preserve the case of my input .Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

桃扇骨 2025-01-29 12:28:31

您可以使用org.apache.hive.hcatalog.data.jsonserde替换org.openx.data.jsonserde.jsonserde.jsonserde

you can use org.apache.hive.hcatalog.data.JsonSerDe replace org.openx.data.jsonserde.JsonSerDe

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文