-
Notifications
You must be signed in to change notification settings - Fork 96
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
[SL-2777] Reproduce error with conversion metric and missing group by #1492
Comments
As a follow up:
|
we do not have anything that tracks what type of metric is being used. We could see if it gets logged so that we can make that calculation on DD |
Do we have any visibility into how often conversion metrics are being queried, and what % hit this error? I checked in our snowflake tables but didn't see anything. I'm trying to prioritize this bug. |
Commented on the PR. I don't know if we can quick-fix this, but if you've got ideas I'd be happy to be wrong about that. |
That error isn't happening in the pushdown optimizer, it's happening on plan conversion. A query of this form apparently doesn't convert to a sql query plan:
|
Hmm, I made that change and it seems to break the predicate pushdown tests, but other tests seems to be fine
@tomkit.lento mind lending a hand? 👀 |
This only addresses the bug from Courtney's post and also the issue 1210, but 1199 is a separate issue |
Cause this |
So trying to remember the context of all this again, but it seems like you can repro this by filtering with a dim that exists in the base measure's semantic model, but that dimension isn't in the group by? I'm looking at the error, it seems like that error is coming from when we cross join the I did some testing, it seems like this fixes that bug? #1381 |
More details here: |
@jordan.stein no, we would not. |
Taking a look 👀 |
I thought if we filter on the base measure set, then join in the conversion set we should only be matching users in the base measure set so wouldn't we be safe from false conversion matches? |
I can also repro if i run |
If you only apply to the filter to the base measure you may get inappropriate conversion matches. |
I feel like that was intentional but maybe I'm misremembering? @willymwai.deng would know |
I think we should apply the filter to the base measure, similar to how to do it for categorical dimensions. i.e The filter only gets applied here to limit the base measure set.
|
Yep that's what I would expect |
I get the error when filtering for metric time
|
Actually, wait, I’m thinking of something else. It is a bit odd that it’s only time filters. But the linked GH issue has a repro case in it, and that uses a metric_time filter as well. |
It should only happen with metric_time, for Reasons |
@courtney.holcomb said:
From SyncLinear.com | SL-2777
The text was updated successfully, but these errors were encountered: