Allow specifying --query multiple times in the command line#50357
Allow specifying --query multiple times in the command line#50357Ziy1-Tan wants to merge 4 commits intoClickHouse:masterfrom
--query multiple times in the command line#50357Conversation
|
This is an automated comment for commit f41f65a with description of existing statuses. It's updated for the latest CI running
|
Signed-off-by: Ziy1-Tan <[email protected]>
| . "$CURDIR"/../shell_config.sh | ||
|
|
||
| $CLICKHOUSE_LOCAL --query "SELECT 101" | ||
| $CLICKHOUSE_LOCAL --query "SELECT 202" --query "SELECT 303" |
There was a problem hiding this comment.
./clickhouse-local --query "select 1" --query "select 2;select 1;" produces
1
2
1
even if option --multiquery is not passed. That's kind of unexpected, the help for --multiquery says "If specified, multiple queries separated by semicolons can be listed after --query.".
EDIT: It is even more strange:
- ./clickhouse-local --query "select 1; select 2" works (without
--multiquery) - ./clickhouse-client --query "select 1; select 2" throws
EDIT of the EDIT: Interesting, this behavior in clickhouse-local and clickhouse-client already existed before. So this PR didn't cause this. But I am not sure if this is a bug or desired, at least clickhouse-local --help currently shows wrong information about --multiquery. @Ziy1-Tan Totally optional, but it would be great if you could check briefly if clickhouse-local could behave in the same way as clickhouse-client.
|
@Ziy1-Tan, tests have failed. Let's continue... |
Closes #49970
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Allow specifying
--querymultiple times forclickhouse-localandclickhouse-client.Documentation entry for user-facing changes