将桌子创建为实木复合地板

时间:2019-09-16 22:27:11

标签: hive hiveql

我正在尝试从现有表创建新表。 我想把它做成镶木地板。 old_table中现有的行数为1.25亿行,其中包含30列。 新表的行数相同,但只有4列。

我的create table命令需要1个多小时。 我的下面的代码中有问题吗?

set mapreduce.map.memory.mb=4096;
set mapreduce.reduce.memory.mb=4096;

create table new_table STORED AS PARQUET as 
-- export layout
SELECT c1,
       c2,
       c3,
       c4
from old_table

0 个答案:

没有答案
相关问题