I have downloaded the weather .txt files from NOAA, which looks like:
WBAN,Date,Time,StationType,SkyCondition,SkyConditionFlag,Visibility,VisibilityFlag,WeatherTy
Interesting question, it took me a minute to realize what is going on but with the right knowledge of hive it is actually obvious!
So, putting 1 and 2 together:
Describe Weather
.Suggestion:
Try to get rid of the first row, preferably before creating the external table.
To add to Dennis' comment above, you can skip the first line from being inserted into your table if you're using a CSV SerDe like so:
CREATE EXTERNAL TABLE cases (
id INT,
case_number STRING,
name STRING,
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
STORED AS TEXTFILE
LOCATION '/hdfs/path'
tblproperties("skip.header.line.count"="1");
The operative line being:
tblproperties("skip.header.line.count"="1")