Created
August 22, 2013 21:13
-
-
Save randyzwitch/6312854 to your computer and use it in GitHub Desktop.
Hive table creation statement airline dataset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create table from yearly airline csv files | |
CREATE EXTERNAL TABLE airline ( | |
`Year` int, | |
`Month` int, | |
`DayofMonth` int, | |
`DayOfWeek` int, | |
`DepTime` int, | |
`CRSDepTime` int, | |
`ArrTime` int, | |
`CRSArrTime` int, | |
`UniqueCarrier` string, | |
`FlightNum` int, | |
`TailNum` string, | |
`ActualElapsedTime` int, | |
`CRSElapsedTime` int, | |
`AirTime` int, | |
`ArrDelay` int, | |
`DepDelay` int, | |
`Origin` string, | |
`Dest` string, | |
`Distance` int, | |
`TaxiIn` int, | |
`TaxiOut` int, | |
`Cancelled` int, | |
`CancellationCode` string, | |
`Diverted` string, | |
`CarrierDelay` int, | |
`WeatherDelay` int, | |
`NASDelay` int, | |
`SecurityDelay` int, | |
`LateAircraftDelay` int) | |
ROW FORMAT DELIMITED | |
FIELDS TERMINATED BY ',' | |
ESCAPED BY '\\' | |
STORED AS TEXTFILE | |
LOCATION '/user/hue/airline/airline'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment