如何保留使用Serde的胶水中的JSON键的情况?
我创建了一个胶水表,该表将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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
org.apache.hive.hcatalog.data.jsonserde
替换org.openx.data.jsonserde.jsonserde.jsonserde
you can use
org.apache.hive.hcatalog.data.JsonSerDe
replaceorg.openx.data.jsonserde.JsonSerDe