2020-09-27 22:09:32 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2020-12-28 11:46:53 +00:00
|
|
|
# shellcheck source=../shell_config.sh
|
2020-09-27 22:09:32 +00:00
|
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
|
2024-08-15 12:40:52 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --query "
|
2020-09-27 22:09:32 +00:00
|
|
|
DROP TABLE IF EXISTS t;
|
|
|
|
CREATE TABLE t (a String, b String) ENGINE = Memory;
|
|
|
|
"
|
|
|
|
|
|
|
|
${CLICKHOUSE_CLIENT} --format_regexp_escaping_rule 'Raw' --format_regexp '^(.+?) separator (.+?)$' --query '
|
|
|
|
INSERT INTO t FORMAT Regexp abc\ separator Hello, world!'
|
|
|
|
|
2024-08-15 12:40:52 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --query "
|
2020-09-27 22:09:32 +00:00
|
|
|
SELECT * FROM t;
|
|
|
|
DROP TABLE t;
|
|
|
|
"
|