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

Loader should not call the "list" Iglu endpoint for Snowflake/Databricks tables #1350

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

istreeter
Copy link
Contributor

@istreeter istreeter commented Jun 20, 2024

Jira ref: PDP-1274

When loading to Redshift, the loader needs to call the "list" Iglu api endpoint in order to discover all minor versions of a schema. It uses the list to merge the schemas.

But for Snowflake/Databricks tables the loader does not need to merge schemas, so there is no need to call the "list" endpoint.

In RDB Loader version 6.0.0 we accidentally changed the loader so it calls the "list" endpoint regardless of the table type. This is a problem for Snowflake/Databricks loads because:

  • it is inefficient to call a api endpoint when we don't need the result
  • some old Iglu repos do not support the list endpoint.

…cks tables

When loading to Redshift, the loader needs to call the "list" Iglu
api endpoint in order to discover all minor versions of a schema. It
uses the list to merge the schemas.

But for Snowflake/Databricks tables the loader does not need to merge
schemas, so there is no need to call the "list" endpoint.

In RDB Loader version 6.0.0 we accidentally changed the loader so it
calls the "list" endpoint regardless of the table type. This is a
problem for Snowflake/Databricks loads because:

- it is inefficient to call a api endpoint when we don't need the result
- some old Iglu repos do not support the list endpoint.
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.

👍

@oguzhanunlu oguzhanunlu merged commit 25d6026 into develop Jul 5, 2024
4 checks passed
@oguzhanunlu oguzhanunlu deleted the no-call-iglu-list-endpoint branch July 5, 2024 12:52
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.

2 participants