-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GLUTEN-3467] Fix 'Names of tuple elements must be unique' error for …
…ch backend (#3468) When there is a `MergeScalarSubqueries` which will create the named_struct with the same name, looks like `{'bloomFilter', BF1, 'bloomFilter', BF2} or {'count(1)', count(1)#111L, 'avg(a)', avg(a)#222L, 'count(1)', count(1)#333L}`, it will cause problem for some backends, e.g. ClickHouse, which cannot tolerate duplicate type names in struct type, so we need to rename 'nameExpr' in the named_struct to make them unique after executing the `MergeScalarSubqueries`. Close #3467.
- Loading branch information
Showing
2 changed files
with
47 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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