v.22.5Improvement
Warn for clickhouse-client --file without --external usage
Warn properly if use clickhouse-client --file without preceeding --external. Close #34747. #34765 (李扬).
Why it matters
This feature addresses improper usage of theclickhouse-client --file option when not preceded by the --external flag, which can lead to unexpected behavior or errors. By providing a clear and proper warning, it helps users avoid mistakes and improves usability.How to use it
When usingclickhouse-client with the --file option, ensure to precede it with the --external flag to avoid warnings. For example:clickhouse-client --external --file your_script.sql