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

Bump iglu-scala-client to 4.0.0 #1360

Merged
merged 3 commits into from
Oct 4, 2024
Merged

Bump iglu-scala-client to 4.0.0 #1360

merged 3 commits into from
Oct 4, 2024

Conversation

spenes
Copy link
Contributor

@spenes spenes commented Sep 23, 2024

Jira ref: PDP-1359

This PR makes necessary changes to use new lookupSchemasUntil instead of listSchemasLike. With this change, list Iglu endpoint won't be needed by RDB Loader.

Also, some of the Stream Transformer tests were failing since windows didn't have expected timestamps. In order to solve this problem, this PR makes necessary changes to read window timestamps from shredded message instead of using hard-coded values.

@spenes spenes force-pushed the iglu-client-3.2.0 branch 4 times, most recently from 4d86b43 to 31cab3e Compare September 27, 2024 13:43
@spenes spenes changed the title Bump iglu-scala-client to 3.2.0 Bump iglu-scala-client to 4.0.0 Sep 27, 2024
@spenes spenes force-pushed the iglu-client-3.2.0 branch 5 times, most recently from 6de4e2e to 6ee66d3 Compare September 28, 2024 00:37
@spenes spenes force-pushed the iglu-client-3.2.0 branch 2 times, most recently from 6915ddd to b588aaa Compare September 30, 2024 14:22
Copy link
Member

@oguzhanunlu oguzhanunlu left a comment

Choose a reason for hiding this comment

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

👍 thanks!

Iglu Scala Client has new lookupSchemasUntil function that allows to fetch list of schemas until given schema key.
If we replace listSchemasLike function with lookupSchemasUntil function, RDB Loader won't rely on the list endpoint of Iglu Server.

This commit makes necessary changes to use new lookupSchemasUntil function instead of listSchemasLike function.
Some of the tests are failing since windows don't have expected timestamps.
In order to solve this problem, this commit makes necessary changes to read
window timestamps from shredded message instead of using hard-coded values.
After starting to use lookupSchemasUntil in fetchSchemasWithSameModel, we are only getting
schemas until the given schema key for every schema key. Previously, we were getting all the
schemas for the same schema model.

This change caused change of behavior when a message contains multiple schema keys for same schema model.
When this happens, RDB Loader tries to create same table multiple times. In order to solve this problem,
this commit contains the change for creating the migration for only max schema key of the same schema model.
Copy link
Member

@oguzhanunlu oguzhanunlu left a comment

Choose a reason for hiding this comment

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

💯

@spenes spenes merged commit 23c1feb into develop Oct 4, 2024
11 checks passed
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.

3 participants