Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile traits materilization #12

Open
rpendyala1994 opened this issue Mar 7, 2024 · 0 comments
Open

Profile traits materilization #12

rpendyala1994 opened this issue Mar 7, 2024 · 0 comments

Comments

@rpendyala1994
Copy link

Does the filter condition (updates.last_record = 1) needs to be applied as a outer query after applying last_value function , looking at the query plan from Snowflake, current code is applying the filter first to get the latest record and then its executing the last value function on the latest record.

Query plan with filter applied in the inner query :

image

Query plan after filter applied in the outer query :
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant