Skip to content

Commit 70fafb9

Browse files
Merge pull request ClickHouse#79083 from ClickHouse/clickhouse_local_subquery_file
Add a test for ClickHouse#72439
2 parents 0273412 + e8d906c commit 70fafb9

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)