Skip to content

Selective aliasing for simple-metrics in WHERE filters#1943

Merged
plypaul merged 11 commits intomainfrom
p/selective_simple_metric_alias_for_where_filter__01
Dec 2, 2025
Merged

Selective aliasing for simple-metrics in WHERE filters#1943
plypaul merged 11 commits intomainfrom
p/selective_simple_metric_alias_for_where_filter__01

Conversation

@plypaul
Copy link
Contributor

@plypaul plypaul commented Dec 1, 2025

This PR is an update to #1941 to handle an edge case with manifests that contain a metric and an entity with the same name. Instead of aliasing all simple-metrics, the change is to alias only a specific one that is relevant to the containing branch in the dataflow plan. This limits collisions in the SELECT statement that is generated from the branch.

Due to the large snapshot changes, please view by commit.

@cla-bot cla-bot bot added the cla:yes label Dec 1, 2025
@plypaul plypaul force-pushed the p/selective_simple_metric_alias_for_where_filter__01 branch from 19fe992 to 1979afc Compare December 1, 2025 08:29
@plypaul plypaul force-pushed the p/selective_simple_metric_alias_for_where_filter__01 branch from 1979afc to a8bf695 Compare December 1, 2025 17:46
@plypaul plypaul force-pushed the p/selective_simple_metric_alias_for_where_filter__01 branch from a8bf695 to 23407b8 Compare December 1, 2025 18:00
@plypaul plypaul marked this pull request as ready for review December 1, 2025 18:04
@plypaul plypaul requested a review from a team as a code owner December 1, 2025 18:04
Copy link
Contributor

@courtneyholcomb courtneyholcomb left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@plypaul plypaul merged commit 4ed024c into main Dec 2, 2025
20 of 25 checks passed
@plypaul plypaul deleted the p/selective_simple_metric_alias_for_where_filter__01 branch December 2, 2025 21:06
courtneyholcomb added a commit that referenced this pull request Dec 4, 2025
courtneyholcomb added a commit that referenced this pull request Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants