Skip to content

Commit

Permalink
Update create_hotels_table.hql
Browse files Browse the repository at this point in the history
  • Loading branch information
artkostm authored Nov 9, 2018
1 parent c123f74 commit 145e2fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions create_hotels_table.hql
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
CREATE EXTERNAL TABLE IF NOT EXISTS hotels (
DROP TABLE IF EXISTS ${HOTELS_TABLE_NAME};

CREATE EXTERNAL TABLE ${HOTELS_TABLE_NAME} (
date_time STRING,
site_name INT,
posa_continent INT,
Expand All @@ -25,5 +27,5 @@ CREATE EXTERNAL TABLE IF NOT EXISTS hotels (
hotel_cluster INT)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
LOCATION '/tmp/test/hotels'
LOCATION '${HOTELS_FILE_LOCATION}'
TBLPROPERTIES("skip.header.line.count"="1");

0 comments on commit 145e2fe

Please sign in to comment.