1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
【以下的回答经过翻译处理】 如果您尝试使用Athena不支持的功能,就会出现上述错误,如本文档所述[1]。在您的情况下,Athena的报错信息中,指出在您在该查询中使用的regexp_substr函数是不支持的。
请参阅Athena支持的Presto功能列表: https://docs.aws.amazon.com/athena/latest/ug/presto-functions.html
我查找了"regexp_substr"函数,并发现它是Oracle/PLSQL函数。我们建议使用Presto支持的替代正则表达式函数,例如regexp_extract。有关Presto是否支持正则表达式函数的列表,请参见[2]。另外,您可以在Athena中使用自定义函数来实现您的用例。请参阅[3],该文档解释了如何创建和使用Athena中的自定义函数。
参考资料:
[1]https://aws.amazon.com/premiumsupport/knowledge-center/athena-syntax-function-not-registered/
[2]https://docs.aws.amazon.com/athena/latest/ug/presto-functions.html
[3]https://docs.aws.amazon.com/athena/latest/ug/querying-udf.html
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 9 Monaten
- AWS OFFICIALAktualisiert vor 6 Monaten