Skip to content

Commit

Permalink
chore(ci): fix dataset domain (#16455)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Sep 14, 2024
1 parent affd91f commit 26b1a17
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/sqllogictests/scripts/prepare_tpcds_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cat ${target_dir}/scripts/tpcds.sql | $BENDSQL_CLIENT_CONNECT
# download data
mkdir -p ${target_dir}/data/
if [ ! -d ${target_dir}/data/tpcds.tar.gz ]; then
curl -s -o ${target_dir}/data/tpcds.tar.gz https://ci.databend.org/dataset/stateful/tpcds.tar.gz
curl -s -o ${target_dir}/data/tpcds.tar.gz https://ci.databend.com/dataset/stateful/tpcds.tar.gz
fi

tar -zxf ${target_dir}/data/tpcds.tar.gz -C ${target_dir}/data
Expand Down
2 changes: 1 addition & 1 deletion tests/sqllogictests/scripts/prepare_tpch_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ echo "CREATE TABLE IF NOT EXISTS ${db}.lineitem
#download data
mkdir -p $data_dir
if [ ! -d ${data_dir}/tpch.tar.gz ]; then
curl -s -o ${data_dir}/tpch.tar.gz https://ci.databend.org/dataset/stateful/tpch.tar.gz
curl -s -o ${data_dir}/tpch.tar.gz https://ci.databend.com/dataset/stateful/tpch.tar.gz
fi

tar -zxf ${data_dir}/tpch.tar.gz -C $data_dir
Expand Down
6 changes: 3 additions & 3 deletions tests/sqllogictests/suites/stage/copy_from_http.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ statement ok
truncate table ontime

query
copy into ontime from 'https://ci.databend.org/dataset/stateful/ontime_2006_200.csv' FILE_FORMAT = (type = CSV skip_header = 1)
copy into ontime from 'https://ci.databend.com/dataset/stateful/ontime_2006_200.csv' FILE_FORMAT = (type = CSV skip_header = 1)
----
dataset/stateful/ontime_2006_200.csv 199 0 NULL NULL

Expand All @@ -15,7 +15,7 @@ statement ok
truncate table ontime

query
copy into ontime from 'https://ci.databend.org/dataset/stateful/ontime_200{6,7,8}_200.csv' FILE_FORMAT = (type = CSV skip_header = 1)
copy into ontime from 'https://ci.databend.com/dataset/stateful/ontime_200{6,7,8}_200.csv' FILE_FORMAT = (type = CSV skip_header = 1)
----
dataset/stateful/ontime_2006_200.csv 199 0 NULL NULL
dataset/stateful/ontime_2007_200.csv 199 0 NULL NULL
Expand All @@ -31,7 +31,7 @@ truncate table ontime


query
copy into ontime from 'https://ci.databend.org/dataset/stateful/ontime_200[6-8]_200.csv' FILE_FORMAT = (type = CSV skip_header = 1)
copy into ontime from 'https://ci.databend.com/dataset/stateful/ontime_200[6-8]_200.csv' FILE_FORMAT = (type = CSV skip_header = 1)
----
dataset/stateful/ontime_2006_200.csv 199 0 NULL NULL
dataset/stateful/ontime_2007_200.csv 199 0 NULL NULL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cat $TESTS_DATA_DIR/ddl/ontime.sql | sed 's/ontime/ontime_mini/g' | $BENDSQL_CLI

ontime_statements=(
## Load data
"COPY INTO ontime_mini FROM 'https://ci.databend.org/dataset/stateful/ontime_2006_100000.csv' FILE_FORMAT = ( type = CSV field_delimiter = ',' record_delimiter = '\n' skip_header = 1 );"
"COPY INTO ontime_mini FROM 'https://ci.databend.com/dataset/stateful/ontime_2006_100000.csv' FILE_FORMAT = ( type = CSV field_delimiter = ',' record_delimiter = '\n' skip_header = 1 );"
## run test
"SELECT DayOfWeek, count(*) AS c FROM ontime_mini WHERE (Year >= 2000) AND (Year <= 2008) GROUP BY DayOfWeek ORDER BY c DESC;"
"SELECT DayOfWeek, count(*) AS c FROM ontime_mini WHERE (DepDelay > 10) AND (Year >= 2000) AND (Year <= 2008) GROUP BY DayOfWeek ORDER BY c DESC;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cat $TESTS_DATA_DIR/ddl/hits.sql | $BENDSQL_CLIENT_CONNECT

hits_statements=(
## load data
"COPY INTO hits FROM 'https://ci.databend.org/dataset/stateful/hits_100k.tsv' FILE_FORMAT = ( type = 'tsv' record_delimiter = '\n' skip_header = 1 );"
"COPY INTO hits FROM 'https://ci.databend.com/dataset/stateful/hits_100k.tsv' FILE_FORMAT = ( type = 'tsv' record_delimiter = '\n' skip_header = 1 );"
## run test
"SELECT '====== SQL1 ======';"
"SELECT COUNT(*) FROM hits;"
Expand Down

0 comments on commit 26b1a17

Please sign in to comment.