使用 Alteryx Designer 在 Athena 中创建/删除表

发布于 2025-01-17 06:30:33 字数 504 浏览 3 评论 0原文

有没有办法从 Alteryx Designer 在 Athena 中删除和创建表?我认为使用 connect In DB 节点并写入会非常简单

drop table test

但是我收到以下错误

Connect In-DB (3)   Error SQLPrepare: [Simba][Athena] (1040) An error has been thrown from the AWS Athena client. Athena Error No: 130, HTTP Response Code: 400, Exception Name: InvalidRequestException, Error Message: line 1:30: mismatched input 'drop'. Expecting: '(', 'LATERAL', 'UNNEST', <identifier> [Execution ID: ]

有没有办法呢?谢谢

is there way to drop and create tables in Athena from Alteryx Designer? I thought it would be dead simple using the connect In DB node and writing

drop table test

But I'm getting the following error

Connect In-DB (3)   Error SQLPrepare: [Simba][Athena] (1040) An error has been thrown from the AWS Athena client. Athena Error No: 130, HTTP Response Code: 400, Exception Name: InvalidRequestException, Error Message: line 1:30: mismatched input 'drop'. Expecting: '(', 'LATERAL', 'UNNEST', <identifier> [Execution ID: ]

Is there a way to it? Thanks

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

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

发布评论

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

评论(2

猫性小仙女 2025-01-24 06:30:33

我会在输出数据工具中使用 Athena Bulk Loader。
这有您需要的功能。
数据连接>亚马逊雅典娜>批量

enter此处的图像描述

I would use the Athena Bulk Loader in Output Data tool.
This has functionality you need.
Data Connections > Amazon Athena > Bulk

enter image description here

掩饰不了的爱 2025-01-24 06:30:33

不允许使用 connect In DB 节点并编写删除查询...仅允许选择类型查询。
(顺便说一下,数据库不支持 Athena,参见 支持 Athena 的想法

所以你必须使用批量加载的标准输出工具
在此处输入图片描述

谨致问候,

西蒙

Using the connect In DB node and writing a drop query is not allowed... only select type queries are allowed.
(and by the way,Athena is not supported for in database, cf Ideas to support Athena

So you must use standard output tool with a bulk load
enter image description here

Best regards,

Simon

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