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

[DO NOT MERGE] DEMO fix(time_comparison):Use Join queries when using time comparison #27853

Closed
wants to merge 2 commits into from

Conversation

Antonio-RiveroMartnez
Copy link
Member

@Antonio-RiveroMartnez Antonio-RiveroMartnez commented Apr 2, 2024

SUMMARY

To facilitate the discussion related our experimental feature for time comparison, we're extracting out form the original PR all the back end changes related to how to create left outer join queries when time comparison is needed. Using JOIN statement would help tackling issues related to Row Limit discussed in this issue. Right now we are raising an exception message to users that try to generate these joined queries on databases where JOINs are not supported.

Known limitations:

  • This approach only supports one time comparison at the time and doesn't rely on the time_offset property in the QueryObject, meaning that it's not compatible with existing API that allows for multiple ranges using such property.
  • We are raising en exception when JOINs are not supported, we should instead fallback to time_offset API that applies the joins on DataFrame level

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@john-bodley john-bodley added the review:checkpoint Last PR reviewed during the daily review standup label Apr 2, 2024
- Add optional arg to extras schema in queryObject
- Perfom a lett oute rjoin if the new arg is present so the query is processed in single query
- Add tests for new fuctionality
- Raise an exception if the DB doesnt support subqueries or joins and user is trying to use the instant time comparison
@john-bodley john-bodley removed the review:checkpoint Last PR reviewed during the daily review standup label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants