Ytsaurus: allow create table/table functions/dictionaries with subset of columns.#87982
Merged
vdimir merged 4 commits intoClickHouse:masterfrom Oct 8, 2025
Merged
Conversation
Contributor
vdimir
reviewed
Oct 2, 2025
src/Core/YTsaurus/YTsaurusClient.cpp
Outdated
| const auto & schema_json = schema.extract<Poco::JSON::Object::Ptr>(); | ||
|
|
||
| if (!schema_json->has("$attributes")) | ||
| throw Exception(ErrorCodes::LOGICAL_ERROR, "No \"$attributes\" property in yt table schema"); |
Member
There was a problem hiding this comment.
Is it possible for a malformed client to send invalid schema json? If so, we should probably use a different error code here, since LOGICAL_ERROR is meant for unreachable code.
Contributor
Author
There was a problem hiding this comment.
Yeh, suppose it is possible. INCORRECT_DATA will be fine?
vdimir
approved these changes
Oct 6, 2025
Contributor
Author
|
@vdimir |
Merged
via the queue into
ClickHouse:master
with commit Oct 8, 2025
e1c1cc9
358 of 361 checks passed
Member
|
I've rerun CI, thanks for pointing it out |
Member
|
Member
|
Let's revert and reintroduce. Everything is failing |
Contributor
Author
|
"Merging" race with #88165 Yeh, let's revert and I will rewrite the test. |
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.
Allows to create a table/table functions/dicts with subset of columns from YtSaurus source.
Example from the integration test:
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Ytsaurus: allow create table/table functions/dictionaries with subset of columns.
Documentation entry for user-facing changes