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

Fix loading lookup extension #17212

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

TessaIO
Copy link
Contributor

@TessaIO TessaIO commented Oct 1, 2024

Resolves #17337.

Description

This PR aims to change the behavior of the druid lookups-cached-single extension. In fact, we aim to introduce the option to iterate over fetched data from the dataFetcher. We need this in the case of loadingLookups, that's why these changes don't impact the pollingLookup feature.
I also added the handling of a use case where the data exists in Druid but not in the actual data fetcher, which is in our use-case JDBC Data fetcher.

Release note

Support iterating over fetched data for the loadinglookups for the druid lookups-cached-single extension

Key changed/added classes in this PR
  • Support iterating over fetched data for the loadinglookups for the druid lookups-cached-single extension

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

@TessaIO
Copy link
Contributor Author

TessaIO commented Oct 1, 2024

@cryptoe @LakshSingla @kfaraz Can you guys take a quick look at this?

@TessaIO TessaIO force-pushed the fix-loading-lookup-extension branch from d9e4cd9 to 4339c87 Compare October 4, 2024 13:49
@TessaIO
Copy link
Contributor Author

TessaIO commented Oct 4, 2024

@abhishekrb19 can you please re-run the pipeline one more time?

@TessaIO
Copy link
Contributor Author

TessaIO commented Oct 11, 2024

@Akshat-Jain thanks for the review! PR updated, can you give it one more round?

Copy link
Contributor

@abhishekrb19 abhishekrb19 left a comment

Choose a reason for hiding this comment

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

Some minor comments

@TessaIO
Copy link
Contributor Author

TessaIO commented Oct 15, 2024

@Akshat-Jain @abhishekrb19 Thanks for the review. One more round please.

Copy link
Contributor

@abhishekrb19 abhishekrb19 left a comment

Choose a reason for hiding this comment

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

@TessaIO a final set of comments. Looks good otherwise, thanks!

Also, we don't typically force push changes to make reviewing easier. The commits will be squashed and merged as one when committing to master.

@TessaIO
Copy link
Contributor Author

TessaIO commented Oct 15, 2024

@abhishekrb19 PR updated!

Copy link
Contributor

@Akshat-Jain Akshat-Jain left a comment

Choose a reason for hiding this comment

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

Thanks for the PR and for addressing all the review comments!
Looks good to me! :)

Copy link
Contributor

@abhishekrb19 abhishekrb19 left a comment

Choose a reason for hiding this comment

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

Thanks for your first contribution @TessaIO, and thanks to @Akshat-Jain for the in-depth review!

@TessaIO, do you mind merging the latest master into this branch to get a clean CI run? I can commit this change after that.

@TessaIO
Copy link
Contributor Author

TessaIO commented Oct 16, 2024

@abhishekrb19 done

@abhishekrb19 abhishekrb19 merged commit a9f5827 into apache:master Oct 16, 2024
60 checks passed
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.

Druid loading lookups failed to iterate over fetched data
3 participants