🎉Source Postgres (CDC) - add support of tsquery type (#13083)
* cdc - add support of tsquery type * rebase on master * Add changes made by the build * Update version in Dockerfile * auto-bump connector version Co-authored-by: grishick <greg@airbyte.io> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
This commit is contained in:
@@ -715,7 +715,7 @@
|
||||
- name: Postgres
|
||||
sourceDefinitionId: decd338e-5647-4c0b-adf4-da0e75f5a750
|
||||
dockerRepository: airbyte/source-postgres
|
||||
dockerImageTag: 0.4.17
|
||||
dockerImageTag: 0.4.18
|
||||
documentationUrl: https://docs.airbyte.io/integrations/sources/postgres
|
||||
icon: postgresql.svg
|
||||
sourceType: database
|
||||
|
||||
@@ -6607,7 +6607,7 @@
|
||||
supportsNormalization: false
|
||||
supportsDBT: false
|
||||
supported_destination_sync_modes: []
|
||||
- dockerImage: "airbyte/source-postgres:0.4.17"
|
||||
- dockerImage: "airbyte/source-postgres:0.4.18"
|
||||
spec:
|
||||
documentationUrl: "https://docs.airbyte.com/integrations/sources/postgres"
|
||||
connectionSpecification:
|
||||
|
||||
@@ -23,7 +23,8 @@ public class PostgresConverter implements CustomConverter<SchemaBuilder, Relatio
|
||||
private final String[] BIT_TYPES = {"BIT", "VARBIT"};
|
||||
private final String[] MONEY_ITEM_TYPE = {"MONEY"};
|
||||
private final String[] GEOMETRICS_TYPES = {"BOX", "CIRCLE", "LINE", "LSEG", "POINT", "POLYGON", "PATH"};
|
||||
private final String[] TEXT_TYPES = {"VARCHAR", "VARBINARY", "BLOB", "TEXT", "LONGTEXT", "TINYTEXT", "MEDIUMTEXT", "INVENTORY_ITEM", "TSVECTOR"};
|
||||
private final String[] TEXT_TYPES =
|
||||
{"VARCHAR", "VARBINARY", "BLOB", "TEXT", "LONGTEXT", "TINYTEXT", "MEDIUMTEXT", "INVENTORY_ITEM", "TSVECTOR", "TSQUERY"};
|
||||
|
||||
@Override
|
||||
public void configure(final Properties props) {}
|
||||
|
||||
@@ -16,5 +16,5 @@ ENV APPLICATION source-postgres
|
||||
|
||||
COPY --from=build /airbyte /airbyte
|
||||
|
||||
LABEL io.airbyte.version=0.4.17
|
||||
LABEL io.airbyte.version=0.4.18
|
||||
LABEL io.airbyte.name=airbyte/source-postgres
|
||||
|
||||
@@ -533,6 +533,14 @@ public class CdcPostgresSourceDatatypeTest extends AbstractSourceDatabaseTypeTes
|
||||
.addInsertValues("to_tsvector('The quick brown fox jumped over the lazy dog.')")
|
||||
.addExpectedValues("'brown':3 'dog':9 'fox':4 'jumped':5 'lazy':8 'over':6 'quick':2 'the':1,7")
|
||||
.build());
|
||||
|
||||
addDataTypeTestData(
|
||||
TestDataHolder.builder()
|
||||
.sourceType("tsquery")
|
||||
.airbyteType(JsonSchemaType.STRING)
|
||||
.addInsertValues("null", "'fat & (rat | cat)'::tsquery", "'fat:ab & cat'::tsquery")
|
||||
.addExpectedValues(null, "'fat' & ( 'rat' | 'cat' )", "'fat':AB & 'cat'")
|
||||
.build());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ According to Postgres [documentation](https://www.postgresql.org/docs/14/datatyp
|
||||
| `timetz` | string | |
|
||||
| `timestamp` | string | |
|
||||
| `timestamptz` | string | |
|
||||
| `tsquery` | string | Not supported with CDC node. Parsed value is null. Issue: [#7911](https://github.com/airbytehq/airbyte/issues/7911) |
|
||||
| `tsquery` | string | |
|
||||
| `tsvector` | string | |
|
||||
| `uuid` | string | |
|
||||
| `xml` | string | |
|
||||
@@ -270,6 +270,7 @@ According to Postgres [documentation](https://www.postgresql.org/docs/14/datatyp
|
||||
|
||||
| Version | Date | Pull Request | Subject |
|
||||
|:--------|:-----------|:-------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------|
|
||||
| 0.4.18 | 2022-05-25 | [13083](https://github.com/airbytehq/airbyte/pull/13083) | Add support for tsquey type |
|
||||
| 0.4.17 | 2022-05-19 | [13016](https://github.com/airbytehq/airbyte/pull/13016) | CDC modify schema to allow null values |
|
||||
| 0.4.16 | 2022-05-14 | [12840](https://github.com/airbytehq/airbyte/pull/12840) | Added custom JDBC parameters field |
|
||||
| 0.4.15 | 2022-05-13 | [12834](https://github.com/airbytehq/airbyte/pull/12834) | Fix the bug that the connector returns empty catalog for Azure Postgres database |
|
||||
|
||||
Reference in New Issue
Block a user