我在蜂巢中创建了一个外部表,如下所示。 表格脚本:
CREATE EXTERNAL TABLE ATCCONTROL (
Year string,
Month string,
DayofMonth int,
DayOfWeek string,
DepTime string,
CRSDepTime string,
ArrTime string,
CRSArrTime string,
UniqueCarrier string,
FlightNum string,
TailNum string,
ActualElapsedTime string,
CRSElapsedTime string,
AirTimein string,
ArrDelay string,
DepDelay string,
Origin string,
Dest string,
Distance string,
TaxiIn string,
TaxiOut string,
Cancelled string,
CancellationCode string,
Diverted string,
CarrierDelay string,
WeatherDelay string,
NASDelay string,
SecurityDelay string,
LateAircraftDelay string
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
STORED AS TEXTFILE
LOCATION '/yapstone/stackover'
它成功创建,但是当我查询表时,它看起来像下面给出的东西。
它看起来像是所有内容都插入到单个列中,使所有其他列都为NULL。
请帮助我解决该问题,我有什么遗漏!我是否需要以';'终止