-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmovies_ddl.sql
37 lines (37 loc) · 930 Bytes
/
movies_ddl.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CREATE EXTERNAL TABLE IF NOT EXISTS movies (
`color` String,
`director_name` String,
`num_critic_for_reviews` Int,
`duration` Int,
`director_facebook_likes` Int,
`actor_3_facebook_likes` Int,
`actor_2_name` String,
`actor_1_facebook_likes` Int,
`gross` Int,
`genres` String,
`actor_1_name` String,
`movie_title` String,
`num_voted_users` Int,
`cast_total_facebook_likes` Int,
`actor_3_name` String,
`facenumber_in_poster` Int,
`plot_keywords` String,
`movie_imdb_link` String,
`num_user_for_reviews` Int,
`language` String,
`country` String,
`content_rating` String,
`budget` Int,
`title_year` Int,
`actor_2_facebook_likes` Int,
`imdb_score` Float,
`aspect_ratio` Float,
`movie_facebook_likes` Int
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
WITH SERDEPROPERTIES (
'serialization.format' = ',',
'field.delim' = ','
)
STORED AS TEXTFILE
LOCATION 's3://royon-demo/imdb/';