-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
CREATE EXTERNAL TABLE IF NOT EXISTS hotels ( | ||
date_time STRING, | ||
site_name INT, | ||
posa_continent INT, | ||
user_location_country INT, | ||
user_location_region INT, | ||
user_location_city INT, | ||
orig_destination_distance DOUBLE, | ||
user_id INT, | ||
is_mobile TINYINT, | ||
is_package INT, | ||
channel INT, | ||
srch_ci STRING, | ||
srch_co STRING, | ||
srch_adults_cnt INT, | ||
srch_children_cnt INT, | ||
srch_rm_cnt INT, | ||
srch_destination_id INT, | ||
srch_destination_type_id INT, | ||
is_booking TINYINT, | ||
cnt BIGINT, | ||
hotel_continent INT, | ||
hotel_country INT, | ||
hotel_market INT, | ||
hotel_cluster INT) | ||
ROW FORMAT DELIMITED | ||
FIELDS TERMINATED BY ',' | ||
LOCATION '/tmp/test/hotels' | ||
TBLPROPERTIES("skip.header.line.count"="1"); |