雅典娜在更新胶水数据目录中更新架构后仍指旧模式

发布于 2025-01-26 04:45:48 字数 254 浏览 1 评论 0原文

我有一个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 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文