HIVE_PATH_ALREADY_EXISTS

0

Hi all, I run a simple query on Athena using Athena engine version 3.

create table if not exists "test"."total_customer" as 
select *
from "A_customer" 
union all
select *
from "B_customer"

And I faced this error: HIVE_PATH_ALREADY_EXISTS: Target directory for table 'test.total_customer' already exists: s3://xxxx/total_customer/2022/11/27/tables/ef02d72d-75e2-4b14-b53f-95d591094cfa. You may need to manually clean the data at location 's3://xxxx/total_customer/2022/11/27/tables/ef02d72d-75e2-4b14-b53f-95d591094cfa' before retrying. Athena will not delete data in your account.

The weird thing is it works perfectly when I use UNION instead of UNION ALL. So I'm not sure if this is Athena engine version 3 error or the query error.

Thank you guys for taking a look at my issue.

1개 답변
0

Thank you for reporting this and sorry for the inconvenience. There is a fix that will go out for this shortly.

AWS
Theo
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인