-
Notifications
You must be signed in to change notification settings - Fork 45
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
Bug 1887694 - Generate events_stream SQL for events #2196
Conversation
// Although events might come from other pings, we override that and | ||
// generate SQL just for the `events_stream`. This changes | ||
// `some_database.table` to `some_database.events_stream`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure if we want to retain the old SQL code generation. Does it make any sense? This is quite a hack @badboy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For events that are not in an events ping this will be incorrect with this change, because they don't end up in the stream just yet.
But otherwise it's fine; no point in keeping the legacy way around
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, what about this? We retain the old query for non 'events' pings until this gets fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small thing, we could fix that in a followup as well.
// Although events might come from other pings, we override that and | ||
// generate SQL just for the `events_stream`. This changes | ||
// `some_database.table` to `some_database.events_stream`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For events that are not in an events ping this will be incorrect with this change, because they don't end up in the stream just yet.
But otherwise it's fine; no point in keeping the legacy way around
Fixes #2185
Pull Request checklist
fixes, if applicable)