Skip to content

Commit

Permalink
Create create_hotels_table.hql
Browse files Browse the repository at this point in the history
  • Loading branch information
artkostm authored Nov 8, 2018
1 parent 595cfd7 commit cfb3f89
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions create_hotels_table.hql
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");

0 comments on commit cfb3f89

Please sign in to comment.