使用 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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南