diff --git a/tests/queries/0_stateless/01037_polygon_perf_test.sh b/tests/queries/0_stateless/01037_polygon_perf_test.sh index c31af95c069..6e05bb258b8 100755 --- a/tests/queries/0_stateless/01037_polygon_perf_test.sh +++ b/tests/queries/0_stateless/01037_polygon_perf_test.sh @@ -7,7 +7,7 @@ TMP_DIR="/tmp" declare -a SearchTypes=("POLYGON_INDEX_EACH" "POLYGON_INDEX_CELL") -tar -xf 01037_test_data_perf.tar.gz +tar -xf ${CURDIR}/01037_test_data_perf.tar.gz $CLICKHOUSE_CLIENT --query="DROP DATABASE IF EXISTS test_01037;" @@ -17,9 +17,9 @@ $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test_01037.points;" $CLICKHOUSE_CLIENT --query="CREATE TABLE test_01037.points (x Float64, y Float64) ENGINE = Memory;" -$CLICKHOUSE_CLIENT --query="INSERT INTO test_01037.points FORMAT TSV" --max_insert_block_size=100000 < "./01037_point_data" +$CLICKHOUSE_CLIENT --query="INSERT INTO test_01037.points FORMAT TSV" --max_insert_block_size=100000 < "${CURDIR}/01037_point_data" -rm 01037_point_data +rm ${CURDIR}/01037_point_data $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test_01037.polygons_array;" @@ -33,9 +33,9 @@ CREATE TABLE test_01037.polygons_array ENGINE = Memory; " -$CLICKHOUSE_CLIENT --query="INSERT INTO test_01037.polygons_array FORMAT JSONEachRow" --max_insert_block_size=100000 < "./01037_polygon_data" +$CLICKHOUSE_CLIENT --query="INSERT INTO test_01037.polygons_array FORMAT JSONEachRow" --max_insert_block_size=100000 < "${CURDIR}/01037_polygon_data" -rm 01037_polygon_data +rm ${CURDIR}/01037_polygon_data $CLICKHOUSE_CLIENT --query="DROP DICTIONARY IF EXISTS test_01037.dict_array;" @@ -60,7 +60,7 @@ do dictGet(dict_name, 'value', key) from test_01037.points order by x, y; " > $outputFile - diff -q "./01037_polygon_perf_test.ans" "$outputFile" + diff -q "${CURDIR}/01037_polygon_perf_test.ans" "$outputFile" $CLICKHOUSE_CLIENT --query="DROP DICTIONARY test_01037.dict_array;" done diff --git a/tests/queries/0_stateless/01037_polygon_search_test.sh b/tests/queries/0_stateless/01037_polygon_search_test.sh index 8cc785ae785..7f232631bce 100755 --- a/tests/queries/0_stateless/01037_polygon_search_test.sh +++ b/tests/queries/0_stateless/01037_polygon_search_test.sh @@ -7,7 +7,7 @@ TMP_DIR="/tmp" declare -a SearchTypes=("POLYGON" "POLYGON_INDEX_EACH" "POLYGON_INDEX_CELL") -tar -xf 01037_test_data_search.tar.gz +tar -xf ${CURDIR}/01037_test_data_search.tar.gz $CLICKHOUSE_CLIENT --query="DROP DATABASE IF EXISTS test_01037;" @@ -17,9 +17,9 @@ $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test_01037.points;" $CLICKHOUSE_CLIENT --query="CREATE TABLE test_01037.points (x Float64, y Float64) ENGINE = Memory;" -$CLICKHOUSE_CLIENT --query="INSERT INTO test_01037.points FORMAT TSV" --max_insert_block_size=100000 < "./01037_point_data" +$CLICKHOUSE_CLIENT --query="INSERT INTO test_01037.points FORMAT TSV" --max_insert_block_size=100000 < "${CURDIR}/01037_point_data" -rm 01037_point_data +rm ${CURDIR}/01037_point_data $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test_01037.polygons_array;" @@ -33,9 +33,9 @@ CREATE TABLE test_01037.polygons_array ENGINE = Memory; " -$CLICKHOUSE_CLIENT --query="INSERT INTO test_01037.polygons_array FORMAT JSONEachRow" --max_insert_block_size=100000 < "./01037_polygon_data" +$CLICKHOUSE_CLIENT --query="INSERT INTO test_01037.polygons_array FORMAT JSONEachRow" --max_insert_block_size=100000 < "${CURDIR}/01037_polygon_data" -rm 01037_polygon_data +rm ${CURDIR}/01037_polygon_data $CLICKHOUSE_CLIENT --query="DROP DICTIONARY IF EXISTS test_01037.dict_array;" @@ -60,7 +60,7 @@ do dictGet(dict_name, 'value', key) from test_01037.points order by x, y; " > $outputFile - diff -q "./01037_polygon_search_test.ans" "$outputFile" + diff -q "${CURDIR}/01037_polygon_search_test.ans" "$outputFile" $CLICKHOUSE_CLIENT --query="DROP DICTIONARY test_01037.dict_array;" done diff --git a/tests/queries/0_stateless/01037_polygon_simple_test.sh b/tests/queries/0_stateless/01037_polygon_simple_test.sh index bab8e76d5e4..8b3b2772226 100755 --- a/tests/queries/0_stateless/01037_polygon_simple_test.sh +++ b/tests/queries/0_stateless/01037_polygon_simple_test.sh @@ -124,7 +124,7 @@ do dictHas(dict_name, key) from test_01037.points order by x, y; " >> $outputFile - diff -q "./01037_polygon_simple_test.ans" "$outputFile" + diff -q "${CURDIR}/01037_polygon_simple_test.ans" "$outputFile" done $CLICKHOUSE_CLIENT --query="DROP DICTIONARY test_01037.dict_array;"