Query returns `HIVE_UNKNOWN_ERROR: Can not create a Path from an empty string`

0

Directed from Andes table to Athena and query errors with

HIVE_UNKNOWN_ERROR: Can not create a Path from an empty string
This query ran against the "andes" database, unless qualified by the query.
Bodhith
已提问 2 个月前196 查看次数
2 回答
1
已接受的回答

The issue was not resolved when I re-created all my resources to have "_" rather "-" however I encountered the same issue again. Finally after checking with support team again, I was suggested to load the table with data and it worked.

So, you might encounter the same error if there is no data in your table. In my case, I had an empty Andes table, from which this glue table depend on, so when I try to query via Athena this error pops up.

Edit: After loading the Andes table via Cradle, I was able to query in Athena. So, the culprit here could be empty table or db, table naming convention or both.

Bodhith
已回答 2 个月前
0

Contacted the customer support and they directed me to https://docs.aws.amazon.com/athena/latest/ug/glue-best-practices.html. Which says that you can't have "-" in glue table name. So for someone encountering this issue, try checking the glue table name.

Bodhith
已回答 2 个月前

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

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

回答问题的准则