-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🐛 Source Postgres: switch from "string" to "array" schema type for columns with JDBCType.ARRAY #8657
Closed
yurii-bidiuk
wants to merge
2
commits into
liren/support-all-postgres-types
from
bidiuk/fix-postgres-array
Closed
🐛 Source Postgres: switch from "string" to "array" schema type for columns with JDBCType.ARRAY #8657
yurii-bidiuk
wants to merge
2
commits into
liren/support-all-postgres-types
from
bidiuk/fix-postgres-array
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yurii-bidiuk
requested review from
etsybaev,
alexandr-shegeda and
sashaNeshcheret
December 9, 2021 11:42
github-actions
bot
added
area/connectors
Connector related issues
area/documentation
Improvements or additions to documentation
area/frontend
area/platform
issues related to the platform
area/scheduler
area/server
area/worker
Related to worker
CDK
Connector Development Kit
kubernetes
labels
Dec 9, 2021
yurii-bidiuk
force-pushed
the
bidiuk/fix-postgres-array
branch
from
December 9, 2021 11:50
4592a0e
to
2ff723c
Compare
github-actions
bot
removed
area/worker
Related to worker
area/documentation
Improvements or additions to documentation
area/platform
issues related to the platform
kubernetes
CDK
Connector Development Kit
area/server
area/scheduler
area/frontend
labels
Dec 9, 2021
yurii-bidiuk
force-pushed
the
bidiuk/fix-postgres-array
branch
from
December 9, 2021 11:53
2ff723c
to
7b380ad
Compare
@@ -127,6 +127,7 @@ public JsonSchemaPrimitive getJsonType(final JDBCType jdbcType) { | |||
case BOOLEAN -> JsonSchemaPrimitive.BOOLEAN; | |||
case TINYINT, SMALLINT, INTEGER, BIGINT, FLOAT, DOUBLE, REAL, NUMERIC, DECIMAL -> JsonSchemaPrimitive.NUMBER; | |||
case BLOB, BINARY, VARBINARY, LONGVARBINARY -> JsonSchemaPrimitive.STRING_BINARY; | |||
case ARRAY -> JsonSchemaPrimitive.ARRAY; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we do the same for other sources?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexandr-shegeda done in #8749
This was
unlinked from
issues
Dec 13, 2021
Closed
replaced with #8749 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Fixes #4357
How
Set type "array" for a catalog when the column's JDBC type is an array.
Recommended reading order
User Impact
These changes should not impact the end-user. This PR sets JSON schema type as "array" for DB values that have JDBCType.ARRAY. Before it was set as "string.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes