-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Migrate-Test](multi-catalog) Migrate p2 tests from p2 to p0.
- Loading branch information
1 parent
aeb89db
commit 2936d25
Showing
47 changed files
with
690 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
docker/thirdparties/docker-compose/hive/scripts/data/default/account_fund/create_table.hql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
CREATE DATABASE IF NOT EXISTS default; | ||
USE default; | ||
|
||
CREATE TABLE `default.account_fund`( | ||
`batchno` string, | ||
`appsheet_no` string, | ||
`filedate` string, | ||
`t_no` string, | ||
`tano` string, | ||
`t_name` string, | ||
`chged_no` string, | ||
`mob_no2` string, | ||
`home_no` string, | ||
`off_no` string) | ||
ROW FORMAT SERDE | ||
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | ||
WITH SERDEPROPERTIES ( | ||
'field.delim'=',', | ||
'serialization.format'=',') | ||
STORED AS INPUTFORMAT | ||
'org.apache.hadoop.mapred.TextInputFormat' | ||
OUTPUTFORMAT | ||
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat' | ||
LOCATION '/user/doris/suites/default/account_fund' | ||
TBLPROPERTIES ( | ||
'transient_lastDdlTime'='1669712244'); | ||
|
||
msck repair table account_fund; |
Binary file added
BIN
+234 Bytes
docker/thirdparties/docker-compose/hive/scripts/data/default/account_fund/data.tar.gz
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
docker/thirdparties/docker-compose/hive/scripts/data/default/account_fund/run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
CUR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
|
||
## mkdir and put data to hdfs | ||
cd "${CUR_DIR}" && rm -rf data/ && tar xzf data.tar.gz | ||
hadoop fs -mkdir -p /user/doris/suites/default/ | ||
hadoop fs -put "${CUR_DIR}"/data/* /user/doris/suites/default/ | ||
|
||
# create table | ||
hive -f "${CUR_DIR}/create_table.hql" |
22 changes: 22 additions & 0 deletions
22
docker/thirdparties/docker-compose/hive/scripts/data/default/hive01/create_table.hql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CREATE DATABASE IF NOT EXISTS default; | ||
USE default; | ||
|
||
CREATE TABLE `default.hive01`( | ||
`first_year` int, | ||
`d_disease` varchar(200), | ||
`i_day` int, | ||
`card_cnt` bigint) | ||
ROW FORMAT SERDE | ||
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | ||
WITH SERDEPROPERTIES ( | ||
'field.delim'=',', | ||
'serialization.format'=',') | ||
STORED AS INPUTFORMAT | ||
'org.apache.hadoop.mapred.TextInputFormat' | ||
OUTPUTFORMAT | ||
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' | ||
LOCATION '/user/doris/suites/default/hive01' | ||
TBLPROPERTIES ( | ||
'transient_lastDdlTime'='1669712244'); | ||
|
||
msck repair table hive01; |
Binary file added
BIN
+186 Bytes
docker/thirdparties/docker-compose/hive/scripts/data/default/hive01/data.tar.gz
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
docker/thirdparties/docker-compose/hive/scripts/data/default/hive01/run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
CUR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
|
||
## mkdir and put data to hdfs | ||
cd "${CUR_DIR}" && rm -rf data/ && tar xzf data.tar.gz | ||
hadoop fs -mkdir -p /user/doris/suites/default/ | ||
hadoop fs -put "${CUR_DIR}"/data/* /user/doris/suites/default/ | ||
|
||
# create table | ||
hive -f "${CUR_DIR}/create_table.hql" |
24 changes: 24 additions & 0 deletions
24
docker/thirdparties/docker-compose/hive/scripts/data/default/sale_table/create_table.hql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE DATABASE IF NOT EXISTS default; | ||
USE default; | ||
|
||
CREATE TABLE `default.sale_table`( | ||
`bill_code` varchar(500), | ||
`dates` varchar(500), | ||
`ord_year` varchar(500), | ||
`ord_month` varchar(500), | ||
`ord_quarter` varchar(500), | ||
`on_time` varchar(500)) | ||
ROW FORMAT SERDE | ||
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | ||
WITH SERDEPROPERTIES ( | ||
'field.delim'=',', | ||
'serialization.format'=',') | ||
STORED AS INPUTFORMAT | ||
'org.apache.hadoop.mapred.TextInputFormat' | ||
OUTPUTFORMAT | ||
'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat' | ||
LOCATION '/user/doris/suites/default/sale_table' | ||
TBLPROPERTIES ( | ||
'transient_lastDdlTime'='1669712244'); | ||
|
||
msck repair table sale_table; |
Binary file added
BIN
+221 Bytes
docker/thirdparties/docker-compose/hive/scripts/data/default/sale_table/data.tar.gz
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
docker/thirdparties/docker-compose/hive/scripts/data/default/sale_table/run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
CUR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
|
||
## mkdir and put data to hdfs | ||
cd "${CUR_DIR}" && rm -rf data/ && tar xzf data.tar.gz | ||
hadoop fs -mkdir -p /user/doris/suites/default/ | ||
hadoop fs -put "${CUR_DIR}"/data/* /user/doris/suites/default/ | ||
|
||
# create table | ||
hive -f "${CUR_DIR}/create_table.hql" |
27 changes: 27 additions & 0 deletions
27
docker/thirdparties/docker-compose/hive/scripts/data/default/string_table/create_table.hql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
CREATE DATABASE IF NOT EXISTS default; | ||
USE default; | ||
|
||
CREATE TABLE `default.string_table`( | ||
`p_partkey` string, | ||
`p_name` string, | ||
`p_mfgr` string, | ||
`p_brand` string, | ||
`p_type` string, | ||
`p_size` string, | ||
`p_con` string, | ||
`p_r_price` string, | ||
`p_comment` string) | ||
ROW FORMAT SERDE | ||
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | ||
WITH SERDEPROPERTIES ( | ||
'field.delim'=',', | ||
'serialization.format'=',') | ||
STORED AS INPUTFORMAT | ||
'org.apache.hadoop.mapred.TextInputFormat' | ||
OUTPUTFORMAT | ||
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' | ||
LOCATION '/user/doris/suites/default/string_table' | ||
TBLPROPERTIES ( | ||
'transient_lastDdlTime'='1669712243'); | ||
|
||
msck repair table string_table; |
Binary file added
BIN
+260 Bytes
docker/thirdparties/docker-compose/hive/scripts/data/default/string_table/data.tar.gz
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
docker/thirdparties/docker-compose/hive/scripts/data/default/string_table/run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
CUR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
|
||
## mkdir and put data to hdfs | ||
cd "${CUR_DIR}" && rm -rf data/ && tar xzf data.tar.gz | ||
hadoop fs -mkdir -p /user/doris/suites/default/ | ||
hadoop fs -put "${CUR_DIR}"/data/* /user/doris/suites/default/ | ||
|
||
# create table | ||
hive -f "${CUR_DIR}/create_table.hql" |
24 changes: 24 additions & 0 deletions
24
docker/thirdparties/docker-compose/hive/scripts/data/default/student/create_table.hql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE DATABASE IF NOT EXISTS default; | ||
USE default; | ||
|
||
CREATE TABLE `default.student`( | ||
`id` varchar(50), | ||
`name` varchar(50), | ||
`age` int, | ||
`gender` varchar(50), | ||
`addr` varchar(50), | ||
`phone` varchar(50)) | ||
ROW FORMAT SERDE | ||
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | ||
WITH SERDEPROPERTIES ( | ||
'field.delim'=',', | ||
'serialization.format'=',') | ||
STORED AS INPUTFORMAT | ||
'org.apache.hadoop.mapred.TextInputFormat' | ||
OUTPUTFORMAT | ||
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' | ||
LOCATION '/user/doris/suites/default/student' | ||
TBLPROPERTIES ( | ||
'transient_lastDdlTime'='1669364024'); | ||
|
||
msck repair table student; |
Binary file added
BIN
+210 Bytes
docker/thirdparties/docker-compose/hive/scripts/data/default/student/data.tar.gz
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
docker/thirdparties/docker-compose/hive/scripts/data/default/student/run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
CUR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
|
||
## mkdir and put data to hdfs | ||
cd "${CUR_DIR}" && rm -rf data/ && tar xzf data.tar.gz | ||
hadoop fs -mkdir -p /user/doris/suites/default/ | ||
hadoop fs -put "${CUR_DIR}"/data/* /user/doris/suites/default/ | ||
|
||
# create table | ||
hive -f "${CUR_DIR}/create_table.hql" |
23 changes: 23 additions & 0 deletions
23
docker/thirdparties/docker-compose/hive/scripts/data/default/test1/create_table.hql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE DATABASE IF NOT EXISTS default; | ||
USE default; | ||
|
||
CREATE TABLE `default.test1`( | ||
`col_1` int, | ||
`col_2` varchar(20), | ||
`col_3` int, | ||
`col_4` int, | ||
`col_5` varchar(20)) | ||
ROW FORMAT SERDE | ||
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | ||
WITH SERDEPROPERTIES ( | ||
'field.delim'=',', | ||
'serialization.format'=',') | ||
STORED AS INPUTFORMAT | ||
'org.apache.hadoop.mapred.TextInputFormat' | ||
OUTPUTFORMAT | ||
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' | ||
LOCATION '/user/doris/suites/default/test1' | ||
TBLPROPERTIES ( | ||
'transient_lastDdlTime'='1669712243'); | ||
|
||
msck repair table test1; |
Binary file added
BIN
+211 Bytes
docker/thirdparties/docker-compose/hive/scripts/data/default/test1/data.tar.gz
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
docker/thirdparties/docker-compose/hive/scripts/data/default/test1/run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
CUR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
|
||
## mkdir and put data to hdfs | ||
cd "${CUR_DIR}" && rm -rf data/ && tar xzf data.tar.gz | ||
hadoop fs -mkdir -p /user/doris/suites/default/ | ||
hadoop fs -put "${CUR_DIR}"/data/* /user/doris/suites/default/ | ||
|
||
# create table | ||
hive -f "${CUR_DIR}/create_table.hql" |
23 changes: 23 additions & 0 deletions
23
docker/thirdparties/docker-compose/hive/scripts/data/default/test2/create_table.hql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE DATABASE IF NOT EXISTS default; | ||
USE default; | ||
|
||
CREATE TABLE `default.test2`( | ||
`id` int, | ||
`name` string, | ||
`age` string, | ||
`avg_patient_time` double, | ||
`dt` date) | ||
ROW FORMAT SERDE | ||
'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | ||
WITH SERDEPROPERTIES ( | ||
'field.delim'=',', | ||
'serialization.format'=',') | ||
STORED AS INPUTFORMAT | ||
'org.apache.hadoop.mapred.TextInputFormat' | ||
OUTPUTFORMAT | ||
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' | ||
LOCATION '/user/doris/suites/default/test2' | ||
TBLPROPERTIES ( | ||
'transient_lastDdlTime'='1669712244'); | ||
|
||
msck repair table test2; |
Binary file added
BIN
+197 Bytes
docker/thirdparties/docker-compose/hive/scripts/data/default/test2/data.tar.gz
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
docker/thirdparties/docker-compose/hive/scripts/data/default/test2/run.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
CUR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
|
||
## mkdir and put data to hdfs | ||
cd "${CUR_DIR}" && rm -rf data/ && tar xzf data.tar.gz | ||
hadoop fs -mkdir -p /user/doris/suites/default/ | ||
hadoop fs -put "${CUR_DIR}"/data/* /user/doris/suites/default/ | ||
|
||
# create table | ||
hive -f "${CUR_DIR}/create_table.hql" |
Oops, something went wrong.