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

Bug 1887694 - Generate events_stream SQL for events #2196

Merged
merged 3 commits into from
Apr 24, 2024

Conversation

Dexterp37
Copy link
Contributor

Fixes #2185

Pull Request checklist

  • The pull request has a descriptive title (and a reference to an issue it
    fixes, if applicable)
  • All tests and linter checks are passing
  • The pull request is free of merge conflicts

Comment on lines +57 to +59
// 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`.
Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Contributor Author

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.

@Dexterp37 Dexterp37 marked this pull request as ready for review April 23, 2024 07:22
@Dexterp37 Dexterp37 changed the title Generate events_stream SQL for events Bug 1887694 - Generate events_stream SQL for events Apr 23, 2024
@Dexterp37 Dexterp37 requested a review from badboy April 23, 2024 07:23
@Dexterp37 Dexterp37 self-assigned this Apr 23, 2024
Copy link
Member

@badboy badboy left a 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.

Comment on lines +57 to +59
// 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`.
Copy link
Member

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

@Dexterp37 Dexterp37 requested a review from badboy April 24, 2024 11:00
@Dexterp37 Dexterp37 enabled auto-merge (squash) April 24, 2024 11:03
@Dexterp37 Dexterp37 merged commit 2048d94 into mozilla:main Apr 24, 2024
5 checks passed
@Dexterp37 Dexterp37 deleted the events_stream_sql branch April 24, 2024 11:07
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

Successfully merging this pull request may close these issues.

Change autogenerated SQL to use events_stream tables
2 participants