Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clickhouse-client: Passing --query and --queries-file works in non-oblivious way #49769

Closed
Demilivor opened this issue May 11, 2023 · 0 comments · Fixed by #50210
Closed

clickhouse-client: Passing --query and --queries-file works in non-oblivious way #49769

Demilivor opened this issue May 11, 2023 · 0 comments · Fixed by #50210

Comments

@Demilivor
Copy link
Contributor

Demilivor commented May 11, 2023

Combining clickhouse-client executes queries from file but does not exectute query in --query

How to reproduce

  1. Create file sql.sql with string SELECT 'File
  2. clickhouse-local --query "select 1" --queries-file "sql.sql"

Actual behavior
Client prints File, Select 1 is ignored

Expected behavior
An exception that usage of both options --query (-q) and --queries-file is prohibited

@rschu1ze rschu1ze changed the title [Client] Combinining --query and --queries-file works wrong/non oblivious way clickhouse-client: Passing --query and --queries-file works in non-oblivious way May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant