Add a test

This commit is contained in:
Alexey Milovidov 2024-07-30 04:07:46 +02:00
parent 8f920d064c
commit c1e7b7be89
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,2 @@
ALTER TABLE t MODIFY COLUMN `c` CODEC(in(1, 2))
ALTER TABLE t MODIFY COLUMN `c` STATISTICS(plus(1, 2))

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
# Ensure that these (possibly incorrect) queries can at least be parsed back after formatting.
$CLICKHOUSE_FORMAT --oneline --query "ALTER TABLE t MODIFY COLUMN c CODEC(in(1, 2))" | $CLICKHOUSE_FORMAT --oneline
$CLICKHOUSE_FORMAT --oneline --query "ALTER TABLE t MODIFY COLUMN c STATISTICS(plus(1, 2))" | $CLICKHOUSE_FORMAT --oneline