雅典娜在更新胶水数据目录中更新架构后仍指旧模式
我有一个JSON文件,该文件在字段名称中具有空格。胶水轨道能够在结构中推断并适当地创建字段。但是,当我在雅典娜询问这张桌子时,我会得到hive_metastore_error抱怨现场名称中的空间。因此,我在胶水数据目录中手动更新了表格,以摆脱列名中的空格。更新后我去雅典娜并进行生成DDL时,我可以在没有空格的情况下获得正确的列。但是,SELECT仍然使用Hive_Metastore_Error失败,它一直告诉我我的列名称中有空格。
有人知道如何解决这个问题吗?不允许更改源数据
I have a JSON file that has spaces in the field names. The Glue crawler is able to infer it and create the fields appropriately in a struct. But when I query this table in Athena I get the HIVE_METASTORE_ERROR complaining about the space in the field name. So I updated the table manually in the glue data catalog to get rid of spaces in the column names. When I go to Athena after the update and do a generate DDL I get the right columns without spaces. However the select still fails with the HIVE_METASTORE_ERROR and it keeps telling me that I have spaces in the column names.
Anyone knows how to get around this problem? Changing the source data is not allowed
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论