Skip to content

Conversation

@Zainab-Saad
Copy link
Contributor

The error occured due to SET transform not checking if the target entry for the RHS item is already present in the query target list and added the item to tl which resulted in variable name conflict.

Instead transformed the item and added to tl only if target entry for the var name could not be found

Added regression tests

The error occured due to SET transform not checking if the target entry
for the RHS item is already present in the query target list and added
the item to tl which resulted in variable name conflict.

Instead transformed the item and added to tl only if target entry for the
var name could not be found

Added regression tests
@github-actions github-actions bot added master override-stale To keep issues/PRs untouched from stale action labels May 17, 2024
*/
if (IsA(set_item->expr, ColumnRef))
{
query->hasAggs = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this intentionally removed?

}
}

if (!query->hasAggs && nodeTag(target_item->expr) == T_Aggref)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

master override-stale To keep issues/PRs untouched from stale action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants