Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): fix dataset domain #16455

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading