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

AirbyteLib: Case insensitive missing column checks, deterministic column ordering in duckdb inserts #34824

Merged
merged 12 commits into from
Feb 6, 2024

Conversation

aaronsteers
Copy link
Collaborator

@aaronsteers aaronsteers commented Feb 4, 2024

This PR uses case-insensitive comparisons when checking for missing columns. We also use an explicit column ordering for duckdb inserts, so that randomized column orders do not break the column aligment during insert.

Other fixes:

  1. In the emulated merge insert, 'id' was hard-coded as the column to check for null value after an outer join. The fix is to use the first primary key column for the merge.
  2. Some references to 'get_connector()' renamed to 'get_source()' (new).

Copy link

vercel bot commented Feb 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2024 11:42pm

@aaronsteers
Copy link
Collaborator Author

This was not the root cause of the issue we ran into.

Closing this PR but we can re-open if we see the symptom addressed here.

The actual issue was a catalog bug on the source connector side, which gets resolved here:

@aaronsteers
Copy link
Collaborator Author

aaronsteers commented Feb 6, 2024

Reopening, in case this issue is perhaps related to:

@aaronsteers aaronsteers marked this pull request as ready for review February 6, 2024 22:57
@aaronsteers aaronsteers changed the title AirbyteLib: Case insensitive checks for missing columns AirbyteLib: Case insensitive missing column checks, deterministic column ordering in duckdb inserts Feb 6, 2024
@aaronsteers aaronsteers force-pushed the aj/airbyte-lib/case-insensitive-missing-col-check branch from 0febed7 to cb73700 Compare February 6, 2024 23:26
@aaronsteers aaronsteers merged commit 6155363 into master Feb 6, 2024
19 checks passed
@aaronsteers aaronsteers deleted the aj/airbyte-lib/case-insensitive-missing-col-check branch February 6, 2024 23:54
xiaohansong pushed a commit that referenced this pull request Feb 13, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 21, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
xiaohansong pushed a commit that referenced this pull request Feb 27, 2024
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.

1 participant