-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
How to use named_collections? #33117
Comments
very strange, your configuration is correct, are you sure you put it on correct level in config and the server indeed uses that config? |
Looked at the source file. It is required to create a file named_collections.xml and describe the structure of the collection there. |
Not it is not, you can just put in config.xml. |
I'm confused. |
Where do I add the |
When you put files in config.d directory they can be used as config files and can be named not only as config.xml -- same as the file name_collection.xml that you saw in the source file. So putting your configuration will also work if you out it in config,xml as well as it will work if you out it in config.d directory in a dile with different name. |
Yes, you can put it just in config.xml |
@kssenii. its true?
|
Yes, totally correct. |
Completed clickhouse-server restart |
What am I doing wrong? |
Understood. The tag was wrong. And "schema" but not "scheme".
engine = PostgreSQL(pg_conn , table = 'cube_data_aggr', schema = 'src_133' ); |
This goood |
hello |
Added connection parameters to config.xml
The server ClickHouse was rebooted.
How to use named_collections?
Code: 36. DB::Exception: There is no collection named
pg_conn
in config. (BAD_ARGUMENTS) (version 21.12.2.17 (official build))@kssenii. i need help
The text was updated successfully, but these errors were encountered: