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: retrieve distinct columns #65

Merged
merged 1 commit into from
Nov 29, 2024
Merged

fix: retrieve distinct columns #65

merged 1 commit into from
Nov 29, 2024

Conversation

dejii
Copy link
Contributor

@dejii dejii commented Nov 29, 2024

What kind of change does this PR introduce?

In cases where a column name is used included in multiple indexes on a table, the join between pg_attribute and pg_index will return a row for each index involving that column. Fix here is to select distinct columns in order to avoid duplicate column names on table creation in the sink.

What is the current behavior?

duplicate columns in sink table creation
image

What is the new behavior?

select unique column names

Additional context

N/A

@imor imor merged commit 5251b30 into main Nov 29, 2024
12 checks passed
@imor imor deleted the deji/fix/distinct-columns branch November 29, 2024 05:06
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