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
23.3 close_connection and share_connection do not work with named collections #48402
Labels
bug
Confirmed user-visible misbehaviour in official release
Comments
SaltTan
added
the
potential bug
To be reviewed by developers and confirmed/rejected.
label
Apr 4, 2023
I cannot upgrade because of this issue. |
Fix #48759. Added backport label to 23.3. |
kssenii
added
bug
Confirmed user-visible misbehaviour in official release
and removed
potential bug
To be reviewed by developers and confirmed/rejected.
labels
Apr 13, 2023
IT seems, that PostgreSQL table also have the same issue 23.3: 23.09.11 19:38:39.541328 [ 7 ] {} <Error> Application: Code: 36. DB::Exception: Unexpected key connection_pool_size in named collection. Required keys: database, db, p
assword, table, user, username, optional keys: addresses_expr, host, hostname, on_conflict, port, schema: Cannot attach table `db`.`tbl
est` from metadata file /var/lib/clickhouse/store/333/33333-1111-3333-1111-33333333/tb.sql from query ATTACH TABLE db.tbl UUID '33333-1111-3333-1111-33333333' (`aaaa` String, `bbbbb` String, `cccc` DateTime, `dddd` String,
) ENGINE = PostgreSQL(db, schema = 'schema', table = 'tbl'). (BAD_ARGUMENTS), Stack trace (when copying thi
s message, always include the lines below):
0. DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe2322d5 in /usr/bin/clickhouse
1. ? @ 0x10bcacc6 in /usr/bin/clickhouse
2. ? @ 0x10bca2ea in /usr/bin/clickhouse
3. DB::StoragePostgreSQL::processNamedCollectionResult(DB::NamedCollection const&, bool) @ 0x14105f8a in /usr/bin/clickhouse
4. DB::StoragePostgreSQL::getConfiguration(absl::lts_20211102::InlinedVector<std::shared_ptr<DB::IAST>, 7ul, std::allocator<std::shared_ptr<DB::IAST>>>, std::shared_ptr<
DB::Context const>) @ 0x141069fa in /usr/bin/clickhouse
5. ? @ 0x1410c651 in /usr/bin/clickhouse
6. DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr<DB::Context>, std::shared_ptr<DB::Context>, DB::ColumnsDescription const&, DB::Const
raintsDescription const&, bool) const @ 0x1405f73b in /usr/bin/clickhouse
7. DB::createTableFromAST(DB::ASTCreateQuery, String const&, String const&, std::shared_ptr<DB::Context>, bool) @ 0x12c2691c in /usr/bin/clickhouse
8. DB::DatabaseOrdinary::loadTableFromMetadata(std::shared_ptr<DB::Context>, String const&, DB::QualifiedTableName const&, std::shared_ptr<DB::IAST> const&, DB::LoadingStrictnessLevel) @ 0x12c45e57 in /usr/bin/clickhouse
9. ? @ 0x12c9a05f in /usr/bin/clickhouse
10. ThreadPoolImpl<ThreadFromGlobalPoolImpl<false>>::worker(std::__list_iterator<ThreadFromGlobalPoolImpl<false>, void*>) @ 0xe305845 in /usr/bin/clickhouse
11. void std::__function::__policy_invoker<void ()>::__call_impl<std::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<false>::ThreadFromGlobalPoolImpl<void ThreadPoolImpl<ThreadFromGlobalPoolImpl<false>>::scheduleImpl<void>(std::function<void ()>, long, std::optional<unsigned long>, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0xe3083b5 in /usr/bin/clickhouse
12. ThreadPoolImpl<std::thread>::worker(std::__list_iterator<std::thread, void*>) @ 0xe301613 in /usr/bin/clickhouse
13. ? @ 0xe307281 in /usr/bin/clickhouse
14. ? @ 0x7fa7cb638609 in ?
15. __clone @ 0x7fa7cb55d133 in ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use the close_connection and share_connection settings with MySQL dictionaries.
After an upgrade to 23.3 ClickHouse cannot load such dictionaries.
The dictionaries work well if I don't use named collections in their definition.
An example:
The text was updated successfully, but these errors were encountered: