CREATE SCHEMA

CREATE TABLE

RENAME TABLE

"tb03"

RENAME TABLE

"tb01"

DROP COLUMN

"CREATE TABLE gt_hive.gt_db1.tb01 (
   name varchar,
   salary integer
)
COMMENT ''
WITH (
   input_format = 'org.apache.hadoop.mapred.TextInputFormat',
   location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
   num_files = '0',
   output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
   serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
   serde_name = 'tb01',
   table_type = 'MANAGED_TABLE',
   total_size = '0'
)"

RENAME COLUMN

"CREATE TABLE gt_hive.gt_db1.tb01 (
   s varchar,
   salary integer
)
COMMENT ''
WITH (
   input_format = 'org.apache.hadoop.mapred.TextInputFormat',
   location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
   num_files = '0',
   output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
   serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
   serde_name = 'tb01',
   table_type = 'MANAGED_TABLE',
   total_size = '0'
)"

SET COLUMN TYPE

"CREATE TABLE gt_hive.gt_db1.tb01 (
   s varchar(256),
   salary integer
)
COMMENT ''
WITH (
   input_format = 'org.apache.hadoop.mapred.TextInputFormat',
   location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
   num_files = '0',
   output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
   serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
   serde_name = 'tb01',
   table_type = 'MANAGED_TABLE',
   total_size = '0'
)"

COMMENT

"CREATE TABLE gt_hive.gt_db1.tb01 (
   s varchar(256),
   salary integer
)
COMMENT 'test table comments'
WITH (
   input_format = 'org.apache.hadoop.mapred.TextInputFormat',
   location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
   num_files = '0',
   output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
   serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
   serde_name = 'tb01',
   table_type = 'MANAGED_TABLE',
   total_size = '0'
)"

COMMENT

"CREATE TABLE gt_hive.gt_db1.tb01 (
   s varchar(256) COMMENT 'test column comments',
   salary integer
)
COMMENT 'test table comments'
WITH (
   input_format = 'org.apache.hadoop.mapred.TextInputFormat',
   location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
   num_files = '0',
   output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
   serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
   serde_name = 'tb01',
   table_type = 'MANAGED_TABLE',
   total_size = '0'
)"

ADD COLUMN

"CREATE TABLE gt_hive.gt_db1.tb01 (
   s varchar(256) COMMENT 'test column comments',
   salary integer,
   city varchar COMMENT 'aaa'
)
COMMENT 'test table comments'
WITH (
   input_format = 'org.apache.hadoop.mapred.TextInputFormat',
   location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
   num_files = '0',
   output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
   serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
   serde_name = 'tb01',
   table_type = 'MANAGED_TABLE',
   total_size = '0'
)"

DROP TABLE

DROP SCHEMA


