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

Prevent aggregate_last_24_hours option from affecting global state #16033

Merged
merged 5 commits into from
Oct 18, 2023

Conversation

alopezz
Copy link
Contributor

@alopezz alopezz commented Oct 17, 2023

What does this PR do?

It fixes a bug causing instance-specific configuration affecting all instances by avoiding modification of global variables.

Motivation

A bug was found where instances with aggregate_last_24_hours set to true would still be seen to be using the date_trunc function in the query, which turned out to be because of other instances on the same Agent, with that setting set to false, were influencing global behavior.

AGENT-10283

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Changelog entries must be created for modifications to shipped code
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #16033 (9fcfa77) into master (2d0c3d8) will increase coverage by 0.11%.
Report is 4 commits behind head on master.
The diff coverage is 100.00%.

Flag Coverage Δ
activemq ?
cassandra ?
confluent_platform ?
hive ?
hivemq ?
hudi ?
ignite ?
jboss_wildfly ?
kafka ?
presto ?
snowflake 96.66% <100.00%> (+0.04%) ⬆️
solr ?
tomcat ?
weblogic ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Test Results

58 tests   56 ✔️  5s ⏱️
  1 suites    2 💤
  1 files      0

Results for commit 9fcfa77.

♻️ This comment has been updated with latest results.

drichards-87
drichards-87 previously approved these changes Oct 17, 2023
Copy link
Contributor

@drichards-87 drichards-87 left a comment

Choose a reason for hiding this comment

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

Left a small suggestion and approved the PR.

snowflake/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: DeForest Richards <56796055+drichards-87@users.noreply.github.com>
@alopezz alopezz merged commit 7e109c2 into master Oct 18, 2023
36 checks passed
@alopezz alopezz deleted the alopez/snowflake/fix-shared-option-bug branch October 18, 2023 07:41
@iliakur
Copy link
Contributor

iliakur commented Oct 18, 2023

💪

@alopezz alopezz mentioned this pull request Oct 18, 2023
3 tasks
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.

None yet

4 participants