我正在尝试使用 boto3 在 athena 引擎版本 2 中添加的准备好的语句。我看到了 CreatePreparedStatement 的 api 文档,但没有看到执行准备好的语句的信息 https://docs.aws.amazon.com/athena/latest/APIReference/API_CreatePreparedStatement.html https://docs.aws.amazon.com/athena/latest/ug/querying-with-prepared-statements.html
最佳答案
boto3 Athena documentation目前没有指定直接执行准备好的语句的API。一个可能的解决方法是通过调用 get_prepared_statement() 来获取PreparedStatement 对象。 ,从对象中提取查询语句,并运行start_query_execution()有了它。
关于prepared-statement - 如何在 Athena 中将准备好的语句与 boto3 结合使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67023267/