Fix flaky test

This commit is contained in:
flynn 2023-10-23 09:39:39 +00:00
parent b42c633706
commit a3e5f24d4f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,6 @@
┌─1─┐
│ 1 │
└───┘
┌─a─┐
│ 1 │
│ 2 │

View File

@ -4,4 +4,5 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
curl -d@- -sS "${CLICKHOUSE_URL}" <<< 'SELECT 1 as a UNION DISTINCT SELECT 2 as a order by a FORMAT PrettyCompactMonoBlock'
curl -d@- -sS "${CLICKHOUSE_URL}" <<< 'SELECT 1 UNION DISTINCT SELECT 1 FORMAT PrettyCompactMonoBlock'
curl -d@- -sS "${CLICKHOUSE_URL}" <<< 'SELECT * FROM (SELECT 1 as a UNION DISTINCT SELECT 2 as a) ORDER BY a FORMAT PrettyCompactMonoBlock'