使用AWS re:Post即您表示您同意 AWS re:Post 使用条款

FUNCTION_NOT_FOUND: line 1:8: Function 'dateadd' not registered

0

I am trying to use the DATEADD function, but I encountered an issue. I am querying an S3 database using Athena. Do I need to store the data in Redshift to use the DATEADD function? Any guidance would be greatly appreciated. Thank you.

已提问 6 个月前562 查看次数
1 回答
0

If you're using the latest version of the Athena query engine, it uses Trino underneath, and the function is date_add (with an underscore): https://trino.io/docs/current/functions/datetime.html#date_add

You'll find links to all the functions supported by Athena's different versions in documentation: https://docs.aws.amazon.com/athena/latest/ug/functions.html

专家
已回答 6 个月前
profile picture
专家
已审核 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则