ILLEGAL_TYPE_OF_ARGUMENT in MV when types are different#85135
Merged
ILLEGAL_TYPE_OF_ARGUMENT in MV when types are different#85135
Conversation
Contributor
|
Workflow [PR], commit [f2d925b] Summary: ❌
|
6d9ba75 to
4492b00
Compare
4492b00 to
5a0b536
Compare
0e2799e to
8bbafe8
Compare
CheSema
commented
Aug 7, 2025
| broken_dst_table, | ||
| mv_name=f"{table_name}_{expect_files_num[0] + 1}_mv", | ||
| format="column1 String, column2 JSON", | ||
| format="column1 String, column2 Array(UInt32)", |
Member
Author
There was a problem hiding this comment.
UInt32 is able to cast to JSON
CheSema
commented
Aug 7, 2025
| debug_columns(input.getColumnsWithTypeAndName()), | ||
| result_metadata->getSampleBlock().dumpStructure(), debug_columns(to_convert)); | ||
|
|
||
| auto converting_types_dag = ActionsDAG::makeConvertingActions( |
Member
Author
There was a problem hiding this comment.
All the issue was in the order.
It should be
- casting columns in chunk to the desired types
- extract subcolumns
- build default / materialize
Michicosun
approved these changes
Aug 7, 2025
This was referenced Aug 7, 2025
This was referenced Aug 7, 2025
robot-ch-test-poll4
added a commit
that referenced
this pull request
Aug 7, 2025
Cherry pick #85135 to 25.7: ILLEGAL_TYPE_OF_ARGUMENT in MV when types are different
robot-clickhouse
added a commit
that referenced
this pull request
Aug 7, 2025
clickhouse-gh bot
added a commit
that referenced
this pull request
Aug 7, 2025
Backport #85135 to 25.7: ILLEGAL_TYPE_OF_ARGUMENT in MV when types are different
CheSema
added a commit
that referenced
this pull request
Aug 8, 2025
Cherry pick #85135 to 25.6: ILLEGAL_TYPE_OF_ARGUMENT in MV when types are different
robot-clickhouse
added a commit
that referenced
this pull request
Aug 8, 2025
CheSema
added a commit
that referenced
this pull request
Aug 8, 2025
Backport #85135 to 25.6: ILLEGAL_TYPE_OF_ARGUMENT in MV when types are different
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
fixing ILLEGAL_TYPE_OF_ARGUMENT in MV when types are different
Documentation entry for user-facing changes