Skip to content

Commit e8d906c

Browse files
1 parent 0273412 commit e8d906c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1
2+
2 1
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
4+
# shellcheck source=../shell_config.sh
5+
. "$CURDIR"/../shell_config.sh
6+
7+
TMP_FILE="${CLICKHOUSE_TMP}/file.tsv"
8+
echo '1' > "${TMP_FILE}"
9+
${CLICKHOUSE_LOCAL} --query "SELECT count() from '${TMP_FILE}'"
10+
${CLICKHOUSE_LOCAL} --query "select 2 as a, (SELECT count() from '${TMP_FILE}') as b"
11+
rm "${TMP_FILE}"

0 commit comments

Comments
 (0)