SQL: id
on Alias
es should be same if the Alias
es are semantically equal
#64652
Labels
:Analytics/SQL
SQL querying
>non-issue
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
This problem was discovered during the investigation of the #56013 bug. Namely the following problems were discovered:
There are two separate issues at play here:
AttributeMap
s keeps only one of theAttribute
s with the same name even if theid
s are different (see theAttributeMapTests
in this PR). This should be fixed no matter what, we should not overwrite attributes with one another during the construction of theAttributeMap
.id
on theAlias
es is not the same in case theAlias
es have the samename
and samechild
(meaning they are semantically equal).For the full explanation and ways we cannot use to fix the second issue, please see: #63710 (comment)
The first issue was fixed as part of #63710 . This issue is to not forget to fix the second one (
id
reuse).Take the example
(3)
above. TheAlias
es in theprojections
:The text was updated successfully, but these errors were encountered: