Fix uncaught exception due noexcept tryGetCreateTableQuery()#88105
Merged
azat merged 1 commit intoClickHouse:masterfrom Oct 7, 2025
Merged
Fix uncaught exception due noexcept tryGetCreateTableQuery()#88105azat merged 1 commit intoClickHouse:masterfrom
azat merged 1 commit intoClickHouse:masterfrom
Conversation
Contributor
|
Workflow [PR], commit [7ec57e8] Summary: ❌
|
auto-merge was automatically disabled
October 6, 2025 15:33
Pull request was closed
fa35728 to
be447c6
Compare
It is possible that some underlying implementation can still throw (from what I read so far it is SQLite and PostgreSQL, later was the real crash which I observed). So let's make tryGetCreateTableQuery() suppress only table does not exist exception, and allow any others (from what I read it looks safe to remove "noexcept" from a method).
be447c6 to
7ec57e8
Compare
Merged
via the queue into
ClickHouse:master
with commit Oct 7, 2025
18cbb74
121 of 123 checks passed
robot-clickhouse
added a commit
that referenced
this pull request
Oct 7, 2025
Cherry pick #88105 to 25.7: Fix uncaught exception due noexcept tryGetCreateTableQuery()
This was referenced Oct 7, 2025
robot-clickhouse
added a commit
that referenced
this pull request
Oct 7, 2025
Cherry pick #88105 to 25.8: Fix uncaught exception due noexcept tryGetCreateTableQuery()
This was referenced Oct 7, 2025
robot-clickhouse
added a commit
that referenced
this pull request
Oct 7, 2025
Cherry pick #88105 to 25.9: Fix uncaught exception due noexcept tryGetCreateTableQuery()
clickhouse-gh bot
added a commit
that referenced
this pull request
Oct 7, 2025
Backport #88105 to 25.9: Fix uncaught exception due noexcept tryGetCreateTableQuery()
clickhouse-gh bot
added a commit
that referenced
this pull request
Oct 7, 2025
Backport #88105 to 25.8: Fix uncaught exception due noexcept tryGetCreateTableQuery()
azat
added a commit
that referenced
this pull request
Oct 7, 2025
Backport #88105 to 25.7: Fix uncaught exception due noexcept tryGetCreateTableQuery()
robot-ch-test-poll1
added a commit
that referenced
this pull request
Oct 7, 2025
Cherry pick #88105 to 25.3: Fix uncaught exception due noexcept tryGetCreateTableQuery()
azat
added a commit
that referenced
this pull request
Oct 8, 2025
Backport #88105 to 25.3: Fix uncaught exception due noexcept tryGetCreateTableQuery()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It is possible that some underlying implementation can still throw (from what I read so far it is SQLite and PostgreSQL, later was the real crash which I observed, see referenced issue).
So let's make tryGetCreateTableQuery() suppress only table does not exist exception, and allow any others (from what I read it looks safe to remove "noexcept" from a method).
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix possible uncaught exception while reading
system.tableswith invalid tables in external databases (PostgreSQL/SQLite/...) attached(Seems that this method marked as
noexceptinitially in #7512, hence @tavplubix PTAL)