【发布时间】:2020-09-29 14:14:39
【问题描述】:
create external table reason ( reason_id int,
retailer_id int,
reason_code string,
reason_text string,
ordering int,
creation_date date,
is_active tinyint,
last_updated_by int,
update_date date
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES (
"separatorChar" = "\t",
"quoteChar" = "'",
"escapeChar" = "\\"
)
STORED AS TEXTFILE
location 's3://bucket_name/athena-workspace/athena-input/'
TBLPROPERTIES ("skip.header.line.count"="1");
上面的查询成功执行,但是在提供的位置没有文件!!! 成功执行后,表被创建并且为空。这怎么可能?
即使我将文件上传到提供的位置,创建的表仍然是空的!!
【问题讨论】:
-
你能运行 select "$path" from
并告诉我输出是什么吗?
标签: amazon-web-services amazon-s3 hive ddl amazon-athena