Update tests.

This commit is contained in:
Nikolai Kochetov 2023-04-28 19:44:53 +00:00
parent 0d3e896f57
commit 3b536165cb
3 changed files with 23 additions and 3 deletions

View File

@ -316,7 +316,7 @@ class IColumn;
M(Float, opentelemetry_start_trace_probability, 0., "Probability to start an OpenTelemetry trace for an incoming query.", 0) \
M(Bool, opentelemetry_trace_processors, false, "Collect OpenTelemetry spans for processors.", 0) \
M(Bool, prefer_column_name_to_alias, false, "Prefer using column names instead of aliases if possible.", 0) \
M(Bool, allow_experimental_analyzer, false, "Allow experimental analyzer", 0) \
M(Bool, allow_experimental_analyzer, true, "Allow experimental analyzer", 0) \
M(Bool, prefer_global_in_and_join, false, "If enabled, all IN/JOIN operators will be rewritten as GLOBAL IN/JOIN. It's useful when the to-be-joined tables are only available on the initiator and we need to always scatter their data on-the-fly during distributed processing with the GLOBAL keyword. It's also useful to reduce the need to access the external sources joining external tables.", 0) \
\
\

View File

@ -15,10 +15,20 @@ verify_sql="SELECT
# In case of test failure, this code will do infinite loop and timeout.
verify()
{
while true
for i in $(seq 1 3001)
do
result=$( $CLICKHOUSE_CLIENT -m --query="$verify_sql" )
[ "$result" = "1" ] && break
if [ "$i" = "3000" ]; then
echo "======="
$CLICKHOUSE_CLIENT --query="SELECT * FROM system.parts format TSVWithNames"
echo "======="
$CLICKHOUSE_CLIENT --query="SELECT * FROM system.metrics format TSVWithNames"
echo "======="
return
fi
sleep 0.1
done
echo 1

View File

@ -20,12 +20,22 @@ verify_sql="SELECT
# In case of test failure, this code will do infinite loop and timeout.
verify()
{
while true; do
for i in $(seq 1 3001); do
result=$( $CLICKHOUSE_CLIENT -m --query="$verify_sql" )
if [ "$result" = "1" ]; then
echo 1
return
fi
if [ "$i" = "3000" ]; then
echo "======="
$CLICKHOUSE_CLIENT --query="SELECT * FROM system.parts format TSVWithNames"
echo "======="
$CLICKHOUSE_CLIENT --query="SELECT * FROM system.metrics format TSVWithNames"
echo "======="
return
fi
sleep 0.1
done
}