Repository navigation
π source-postgres: fix jsonb[] handling bug - #30534
Conversation
Before Merging a Connector Pull RequestWow! What a great pull request you have here! π To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
Coverage report for source-postgres
|
|
| Step | Result |
|---|---|
| Build connector tar | β |
| Build source-postgres docker image for platform linux/x86_64 | β |
| Java Connector Unit Tests | β |
| Java Connector Integration Tests | β |
| Acceptance tests | β |
| Validate airbyte-integrations/connectors/source-postgres/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-postgres test
|
| Step | Result |
|---|---|
| Build connector tar | β |
| Build source-postgres docker image for platform linux/x86_64 | β |
| Java Connector Unit Tests | β |
| Java Connector Integration Tests | β |
| Acceptance tests | β |
| Validate airbyte-integrations/connectors/source-postgres/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-postgres test|
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
60b2c4d to
721bc36
Compare
|
| Step | Result |
|---|---|
| Build connector tar | β |
| Build source-postgres docker image for platform linux/x86_64 | β |
| Java Connector Unit Tests | β |
| Java Connector Integration Tests | β |
| Acceptance tests | β |
| Validate airbyte-integrations/connectors/source-postgres/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-postgres test721bc36 to
1935d27
Compare
1935d27 to
851f593
Compare
|
| Step | Result |
|---|---|
| Build connector tar | β |
| Build source-postgres docker image for platform linux/x86_64 | β |
| Java Connector Unit Tests | β |
| Java Connector Integration Tests | β |
| Acceptance tests | β |
| Validate airbyte-integrations/connectors/source-postgres/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=source-postgres test
Duy Nguyen (nguyenaiden)
left a comment
There was a problem hiding this comment.
This looks good to me! Could you make sure to bump the version in source-postgres-strict-encrypt as well?
| default -> json.put(columnName, value); | ||
| default -> { | ||
| if (columnInfo.columnType.isArrayType()) { | ||
| putArray(json, columnName, resultSet, colIndex); |
There was a problem hiding this comment.
How come jsonb[] type not falling into case ARRAY ?
| .withItems(JsonSchemaType.builder(JsonSchemaPrimitive.STRING).build()) | ||
| .build()) | ||
| .addInsertValues("ARRAY['{\"foo\":\"bar\"}'::JSONB, NULL]") | ||
| .addExpectedValues("[\"{\\\"foo\\\": \\\"bar\\\"}\",null]") |
There was a problem hiding this comment.
This still seem likes Postgres's string representation of the array. I think we want something along the lines of ["{\"foo\": \"bar\"}"]
There was a problem hiding this comment.
As discussed offline, disregard this. It's Java's representation of the array. We've tested this version manually and it fixes the regression π
This PR fixes #29172 by adding a new subcase for unmatched
PostgresTypes incopyToJsonField. This new subcase distinguishes remaining array types from remaining non-array types. Added a unit test to cover.Fixes #29551.