create table Schema.tablename (
col1 string,
col2 decimal(38,2)
) partitioned by (partition_col col_type) stored as parquet;
insert into Schema.tablename partition(partition_col)
select col1
,col2
,partition_col
from table
;
'언어 꿀Tip > Hadoop Hive' 카테고리의 다른 글
[hive/impala] 정규표현식 이용한 숫자 추출하기 (0) | 2021.09.24 |
---|---|
[Hive] 04. 날짜 다루기 (string -> date) (0) | 2021.05.31 |
[Hive] 02.현재 날짜 다루기 (0) | 2021.05.25 |
[impala] 01. 현재 날짜 다루기, string to date format (0) | 2021.05.06 |