Skip to content

Conversation

@erezrokah
Copy link
Member

Summary

Fixes #12440

We can't use like otherwise an ordinal of 1 matches both indkey = 11 and indkey = 1

@erezrokah erezrokah requested review from a team and mnorbury and removed request for a team July 25, 2023 13:00
@erezrokah
Copy link
Member Author

See #12440 (comment) for a table that reproduces the issue

@erezrokah erezrokah requested a review from hermanschaaf July 25, 2023 13:01
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jul 25, 2023
@hermanschaaf
Copy link
Member

Tricky, nice find! Would it be feasible / easy to add a test case for this you think?

@erezrokah
Copy link
Member Author

Would it be feasible / easy to add a test case for this you think?

Good point, added a test in 8b4e25c (fixed the lint warnings in a separate commit)

t.Fatalf("expected record to have %d columns, got %d", len(expected), actualRecord.NumCols())
}
schema := actualRecord.Schema()
sc := actualRecord.Schema()
Copy link
Member Author

@erezrokah erezrokah Jul 25, 2023

Choose a reason for hiding this comment

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

Needed to prevent shadowing the new import "github.com/cloudquery/plugin-sdk/v4/schema"

@kodiakhq kodiakhq bot merged commit 99e7ad9 into cloudquery:main Jul 25, 2023
kodiakhq bot pushed a commit that referenced this pull request Jul 25, 2023
🤖 I have created a release *beep* *boop*
---


## [2.0.3](plugins-source-postgresql-v2.0.2...plugins-source-postgresql-v2.0.3) (2023-07-25)


### Bug Fixes

* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 10df4b9 ([#12443](#12443)) ([e385283](e385283))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.2.3 ([#12307](#12307)) ([8f14e4d](8f14e4d))
* Don't create duplicate columns for unique constraints ([#12518](#12518)) ([99e7ad9](99e7ad9))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Error copying table structure from Postgres -> DuckDB

3 participants