v.20.12Improvement
Set Default Parameters for SOURCE(CLICKHOUSE) to Current Instance
Set defaulthostandportparameters forSOURCE(CLICKHOUSE(...))to current instance and set defaultuservalue to'default'. #16997 (vdimir).
Why it matters
This feature simplifies the usage of theSOURCE(CLICKHOUSE(...)) table function by automatically defaulting the connection parameters (host, port, and user) to the current ClickHouse server settings. It reduces the need for users to specify these parameters explicitly when querying data from the current instance, improving convenience and reducing configuration errors.How to use it
When using theSOURCE(CLICKHOUSE(...)) table function, you can omit the host, port, and user parameters to connect to the current ClickHouse instance as user 'default'. For example:SELECT * FROM SOURCE(CLICKHOUSE('query'))will connect to the local ClickHouse server using the defaults without additional specification.