1
0
mirror of synced 2025-12-21 19:11:14 -05:00
Commit Graph

368 Commits

Author SHA1 Message Date
Rodi Reich Zilberman
49f97f1142 Integration Branch for DB/DW Sources team for Feb '23 code freeze (#23185)
* source-snowflake: use a safer method for parsing a BigInteger cursor value (#22358)

* use a safer method for parsing a BigInteger cursor value

* Add testing

* fix format change

* Fix failing integration tests

* Try removing the failing incremental test

* Try removing the failing incremental test

* Fix failing test

* Add metadata to connector logs (log level, class name, method name and line number) (#23105)

* Issue #17861 Add labels, class, method name and line numbers to connector logs

* Refactored unit test

* fix for warning about UTF8 charset in test class

---------

Co-authored-by: prateekmukhedkar <prateek@airbyte.io>

* Update docker image and release notes

* auto-bump connector version

* manually bump version on spec

---------

Co-authored-by: Prateek Mukhedkar <123108018+prateekmukhedkar@users.noreply.github.com>
Co-authored-by: prateekmukhedkar <prateek@airbyte.io>
Co-authored-by: Sergio Ropero <sergio@airbyte.io>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-02-22 11:59:23 -08:00
Subodh Kant Chaturvedi
58552cb27f postgres-source-cdc: mark wal2json plugin as depracated in the docs (#23135)
* postgres-source-cdc: mark wal2json plugin as depracated in the docs

* update spec as well

* change expected spec
2023-02-23 00:30:05 +05:30
Rodi Reich Zilberman
d04128d535 Publish 1.0.45 source-postgres-strict-encrypt (#23028)
* initial checkin

* update PR number

* sanity
2023-02-14 14:36:29 -06:00
Sergio Ropero
7e0b9c25bd fix: Add check on Postgres source connection for missing privileges (#22371)
* Add initial commit.
Missing testing

* Add unit test revoking replication privilege.

* Small fix in the documentation

* Change from `RuntimeException` to `ConfigErrorException`

* Improve test validation

* Add commentodoc

* bump version!

* Bump strict script

* auto-bump connector version

---------

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-02-14 04:55:36 -06:00
Sergio Ropero
1807c8f92e feat: Filter out system views out of system namespaces (#22427)
* This changes allows to filter out system views created out of system namespaces

* Add extra view

* Fix issue

* Bump Postgres source version

* bump version

* Bump alloydb

* Bump versioning

* auto-bump connector version

* Set default implementation and remove from unneeded places

---------

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-02-09 22:20:05 +00:00
Subodh Kant Chaturvedi
df614d47cb fix-postgres-source: get rid of short lived objects (#21634)
* fix-postgres-source: get rid of short lived objects

* cache column info as well

* get rid of constructor

* upgrade version

* auto-bump connector version

* update definition

---------

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-02-06 23:54:58 +05:30
Sergio Ropero
b87647df62 Revert "feat: Filter out system views out of system namespaces (#22221)" (#22425)
This reverts commit 3bf87a992e.
2023-02-06 23:54:28 +05:30
Sergio Ropero
3bf87a992e feat: Filter out system views out of system namespaces (#22221)
* This changes allows to filter out system views created out of system namespaces

* Add extra view

* Fix issue

* Bump Postgres source version
2023-02-06 19:10:30 +01:00
Subodh Kant Chaturvedi
5ceb14a91e use replace function only when null is present (#21523)
* use replace function only when null is present

* upgrade version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-27 15:07:16 +05:30
Akash Kulkarni
9ccdeb9fce Increase memory allocation for JDBC buffers in source DB connectors (#20939)
* Bump total allocation of the source's available memory for the JDBC buffer from 60% to 70%

* Profiling setup

* Update Dockerfile

* Fixes

* Update FetchSizeConstants.java

* Update dockerfiles

* Update JdbcStreamingQueryConfig.java

* auto-bump connector version

* Manually bump source-mysql

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-27 04:50:48 +00:00
Rodi Reich Zilberman
6d0177ae9f Revert back to erroring out on a null cursor value (#21825)
* revert back to erroring out on a null cursor value

* Update dockerfiles and release notes

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-25 02:01:14 +00:00
Sergio Ropero
3efc6431ea [Doc] Update Postgres documentation (#21652)
* Update documentation for Postgres:
- Add details if you need CDC sync for some tables and also sync views.
- Reformat tables.

* Update documentation for Postgres:
- Add details if you need CDC sync for some tables and also sync views.
- Reformat tables.

* Make documentation user friendly

* Fix table
2023-01-24 10:18:42 -05:00
Akash Kulkarni
79de89d439 Source Postgres : Fast query for estimate messages (#21683)
* Source Postgres : Fast query for estimate messages

* Update documentation

* auto-bump connector version

* Update strict-encrypt Dockerfile

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-23 06:33:58 -08:00
VitaliiMaltsev
f5f4de2e5f JDBC sources: consolidate date/time values mapping (#20346)
* JDBC sources: consolidate date/time values mapping

* fixed Snowflake acceptance tests

* fixed TestJdbcUtils

* refactoring

* update setDate for incremental sync

* fixed CockroachDbJdbcSourceAcceptanceTest

* fixed CockroachDbSourceDatatypeTest

* fixed CockroachDbSourceDatatypeTest

* fixed MsSQLSourceDatatypeTest

* fixed MsSQL cdc datatype test

* refactoring

* fixed mssql cdc test

* fixed Redshift tests

* fixed Redshift tests

* updated db2 datatype tests

* fixed DB2 tests

* fixed DB2 strict-encrypt tests

* fixed Oracle strict-encrypt tests

* refactoring

* updated changelog

* refactoring

* removed redundant overrides

* bump versions

* auto-bump connector version

* resolved merge conflicts

* auto-bump connector version

* auto-bump connector version

* auto-bump connector version

* auto-bump connector version

* bump postgres version

* auto-bump connector version

* updated seed definitions

* revert generated definitions for Postgres

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-18 19:21:11 +02:00
Akash Kulkarni
63e4482a5f Source Postgres : Emit estimate trace messages for non-CDC mode (#20783)
* Emit estimate trace messages

* Update PostgresQueryUtils.java

* Remaining merge conflicts

* Code cleanip

* Address comments

* Formatting

* Cleanup

* Addressing comments

* Bump version + documentation

* Update strict-encrypt Dockerfile

* Unpublish

* Merge conflicts

* Update Dockerfile

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-18 13:55:54 +00:00
Subodh Kant Chaturvedi
8dffde019d postgres-source-cdc: handle null values for array data types (#21003)
* postgres-source-cdc:handle null values for array data types

* fix test

* upgrade version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-11 23:41:49 +05:30
Evan Tahler
26de82755d Update postgres.md (#21170) 2023-01-09 10:34:09 -08:00
Subodh Kant Chaturvedi
7dfc38d5bc source-postgres-cdc: allow LSN to be acknowledged after sync (#20469)
* WIP

* fix issues

* fix test

* format

* more tests

* one more test

* make lsn_commit_behaviour not required

* update expected spec

* update expected spec

* update expected spec

* PR comments

* PR comments

* upgrade version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-04 14:23:17 +05:30
Amruta Ranade
c9e6cb1cab Remove IP addresses from postgres and alloydb docs (#20524) 2022-12-15 12:18:22 -05:00
Joe Reuter
b8724c2c81 Update connector oneOf descriptions (#20378)
Update descriptions in some specs to render them better in the form
2022-12-15 12:25:23 +01:00
Rodi Reich Zilberman
f91ecdc8dd Update SSH tunnel private key instructions (#20325) 2022-12-14 14:00:28 -08:00
Subodh Kant Chaturvedi
2ea61104ed cdc:ignore timeout if snapshot is not complete (#18959)
* cdc:ignore timeout if snapshot is not complete

* improve log message

* nit change

* resolve conflicts

* upgrade version

* auto-bump connector version

* fix expected_spec.json for mssql source

* update definitions

* format

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-12-13 17:35:42 +05:30
Subodh Kant Chaturvedi
a3708ebead source-postgres:just throw a warning if a cursor column contains null value (#20192)
* source-postgres:just throw a warning if a cursor column contains null value

* ignore test + update review comment

* use Disabled annotation

* upgrade version

* upgrade version for alloy db strict encrypt as well

* auto-bump connector version

* update definitions

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-12-12 16:39:18 +05:30
Rodi Reich Zilberman
b5c08ceed6 Stop sync on a null value in a cursor column (#19889)
* Stop sync on a null value in a cursor column

* Fix quoting in query to solve a failing test

* Fix another escaping issue in query

* Fix failing test

* Fix failing tests

* Test view with null value cursor

* Improve error message

* bump dockerfile version and update note

* bump version to 1.0.31

* Fix failing test

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-12-06 15:05:01 -08:00
Edward Gao
ea3fb898aa Source Postgres: Fix not being able to configure wal2json plugin (unpublished) (#19985)
* switch const to default

* update expected specs

* try updating system-stubs?

* Revert "try updating system-stubs?"

This reverts commit 0311a5a1d1.

* switch to system stubs

* changelog

* fix more tests
2022-12-05 17:08:21 -08:00
oneshcheret
1fd4a03fda Source postgres: fix schema permission issue (#19024)
* Source postgres: fix schema permission issue

* Source postgres: add test for schema permission issue

* Source postgres: format code

* Source postgres: added unit test

* Source postgres: bump version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Co-authored-by: Rodi Reich Zilberman <867491+rodireich@users.noreply.github.com>
2022-12-02 10:04:45 -08:00
oneshcheret
494349f966 Revert "Source postgres: mark termination connection PSQLException as config error (#19623)" (#19881)
This reverts commit 92282ded3b.
2022-11-29 18:10:09 +02:00
oneshcheret
92282ded3b Source postgres: mark termination connection PSQLException as config error (#19623)
* Source postgres: catch termination connection PSQLException

* Source postgres: move common code to util method

* Source postgres: clean code

* Source postgres: review fixes and added unit tests

* Source postgres: clean code

* Source postgres: bump version

* Source postgres: format

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-11-29 16:47:09 +02:00
Evan Tahler
e73a5337ca Increase Database Source SELECT Batch Size (#19514)
* Increase Database Source SELECT Batch Size

* 60% is a little safer

* comment

* format...

* Update byte-size tests

* fixup tests

* test fixes

* format

* readmes and connector versions

* match strict-encrypt versions

* auto-bump connector version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-11-28 14:19:47 -08:00
VitaliiMaltsev
d04a01a8ad Source Postgres: Handle Arrays data types (#16990)
* Source Postgres: Handle Arrays data types

* bump version

* updated items mapping

* updated mapping of common types

* add datatype tests

* removed redundant variables

* Fixed getSpec schema test

* removed redundant variables

* refactoring

* updated json schema mappings

* updated debezium converters

* removed unused logging

* refactoring

* refactoring and added comments

* fixed checkstyle

* refactoring

* bump version

* auto-bump connector version

Co-authored-by: ievgeniit <etsybaev@gmail.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-11-28 17:53:26 +02:00
VitaliiMaltsev
637781d43b 🐛 Postgres Source Strict Encrypt: Allow connections with sslmodes 'allow' and 'prefer' if SSH tunnel established (#19551)
* Postgres Source Strict Encrypt: Allow connections with sslmodes 'allow' and 'prefer' if SSH tunnel established

* updated changelog

* fixed tests

* add test_strictness_level to acceptance-test-config.yml

* remove test_strictness_level to due to failed SAT test

* bump version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-11-28 16:31:24 +02:00
Amruta Ranade
5688f77f95 Update postgres.md 2022-11-17 13:29:11 -05:00
Rodi Reich Zilberman
b1c9101b3a commit a change to publush strict-encrypt-source-postgres again (#19524) 2022-11-16 17:33:25 -08:00
Rodi Reich Zilberman
c739c4c36c Implement Debezium heartbeats for source-postgres (#19004)
* Initial working commit

* Code sanity. Provide no-on implementation to mysql, MSSql to allow compilation.

* Update test

* sanity

* sanity

* sanity

* sanity

* sanity

* changes per review comments

* Make heartbeat change waittime configurable.

* Trying to bypass test strictness test

* Trying to bypass test strictness test

* Trying to bypass test strictness test

* fix acceptance test config format

* add missing SAT test in config

* revert back changes in acceptance-test-config.yml

* Version and notes

* auto-bump connector version

Co-authored-by: alafanechere <augustin.lafanechere@gmail.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-11-16 16:20:04 -08:00
VitaliiMaltsev
a1db24cf55 Postgres Source: use native Postgres timeout if it's not set by the user (#19291)
* Postgres Source: use native Postgres timeout if it's not set by the user

* refactoring

* updated connection timeout logic and added tests for different datasources creation

* fixed pmd

* refactoring

* bump version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-11-16 19:49:00 +02:00
VitaliiMaltsev
c72b75e608 Postgres/MySQL Source Strict Encrypt: stop enforce SSL if ssl mode disabled (#19025)
* Postgres/MySQL Source Strict Encrypt: stop enforce SSL if ssl mode disabled

* fixed checkstyle

* updated changelog

* add tests

* replaced MySQL test to mysql-strict-encrypt module

* fixed Connection Refused for mysql test

* replaced Postgres Source strict-encrypt tests into new class

* bump version

* auto-bump connector version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-11-10 00:59:18 +02:00
oneshcheret
2d4f443c75 Sources postgres, mysql, alloydb: encode database name (#18538)
* Source postgres: encode database name

* Source postgres, mysql: move encoding in util class, apply for mysql

* Source postgres, mysql: make var final

* Source postgres, mysql: bump version

* Source postgres, mysql: format code

* auto-bump connector version

* Source mysql: bump version

* auto-bump connector version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-31 19:53:20 +02:00
oneshcheret
79f2118fc5 Source postgres: disable allow and prefer ssl modes in CDC mode (#18256)
* Source postgres: disable ssl_mode allow and prefer in CDC mode

* Source postgres: code review fixes

* Source postgres: code review fixes

* Source postgres: improve ssl mode handling

* Source postgres: bump version

* auto-bump connector version

* Source postgres: bump version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-26 12:26:46 +03:00
VitaliiMaltsev
3fd3cf6eed Postgres Source : updated docs for CDC setup (#18291)
* Postgres Source updated docs for CDC setup

* fixed typo

* fixed typo

* rephrased

* rephrased
2022-10-26 11:18:20 +03:00
Akash Kulkarni
b0a8e5473f Follow-up fix for SSHExceptions (#18383)
* Follow-up fix for SSHExceptions

* Catch RuntimeException instead of augmenting connection error messaging for now

* Update tests

* Bump versions + docs

* auto-bump connector version

* auto-bump connector version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-25 15:06:03 -07:00
Ryan Fu
cc41385f50 Updates getPrivateKeyPair to throw exception when private key pair does not exist (#18263)
* Changes method from returning null to throwing Exception to match method structure

* Added javadoc explaining that KeyPair should not be returning null

* Moved ConnectionErrorException to commons package

* Adds error handling for SshWrappedDestinations and markdown to include changes

* Bumps version numbers for Postgres, MySQL, MSSQL

* auto-bump connector version

* auto-bump connector version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-21 16:04:39 -07:00
Akash Kulkarni
55d030f3d7 🎉 Enhanced error messaging for DB source connectors (#18087)
* Enhanced error messaging for invalid cursor state

* Handle SSH config fail

* Handle SSH config fail

* Update AbstractDbSource.java

* Bump up versions + doc for beta+ connectors

Bump up versions + doc for beta+ connectors

* auto-bump connector version

* auto-bump connector version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-19 12:22:42 -07:00
Ryan Fu
8c780bd3aa Publishes Postgres, MySQL, MSSQL source with changes from #18041 (#18086)
* Publishes Postgres, MySQL, MSSQL source with changes from #18041

* auto-bump connector version

* auto-bump connector version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-18 21:53:30 -07:00
Liren Tu
888347a0d0 🎉 JDBC sources: store cursor record count in db state (#15535)
* Add cursor_record_count to db stream state

* Add cursor record count to cursor info

* Emit max cursor record count

* Add original cursor record count

* Unify logging format

* Add backward compatible methods

* Update unit tests for state decorating iterator

* Update test (not done yet)

* Fix one more unit test

* Change where clause operator according to record count

* Add branch for null cursor

* Skip saving record count when it is 0

* Fix log wording

* Set mock record count in test

* Check cursor value instead of cursor info

* Fix source jdbc test

* Read record count from state

* Fix tests

* Add an acceptance test case

* Fix npe

* Change record count from int to long to avoid type conversion

* Fix references

* Fix oracle container

* Use uppercase for snowflake

* Use uppercase for db2

* Fix and use uppercase

* Update test case to include the edge case

* Format code

* Remove extra assertion in clickhouse

* Merge ms sql incremental query method

* Log query for debugging

* Clean up name_and_timestamp table

* Fix db2 tests

* Fix mssql tests

* Fix oracle tests

* Fix oracle tests

* Fix cockroachdb tests

* Fix snowflake tests

* Add changelog

* Fix mssql tests

* Fix db2-strict-encrypt tests

* Fix oracle-strict-encrypt tests

* Bump postgres version

* Fix oracle-strict-encrypt tests

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-14 01:09:12 -07:00
Subodh Kant Chaturvedi
4652173311 postgres-source: handle 24:00:00 value for time column (#17782)
* postgres-source: handle 24:00:00 value for time column

* address review comment

* fix test + use LocalTime.MAX

* bump version

* update alloy db as well

* auto-bump connector version [ci skip]

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-12 03:33:35 +05:30
Liren Tu
bd5fb351ea 📝 Postgres source: document occasional full refresh under cdc mode (#17705)
* Update postgres doc about full refresh in cdc mode

* Update format
2022-10-06 15:26:05 -07:00
Rodi Reich Zilberman
d8b0563723 Match entry in client cert keystore to hardcoded postgres driver value (#17515)
* Match entry in client cert keystore to hardcoded postgres driver value

* Match entry in client cert keystore to hardcoded postgres driver value

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-03 19:02:38 -07:00
Amalia Advincula-Roye
7b4b3782c1 Update IP list to require all to be whitelisted (#17288) 2022-10-03 12:37:39 -04:00
Subodh Kant Chaturvedi
0c1823d9aa upgrade debezium version to 1.9.6 (#17459)
* upgrade debezium version to 1.9.6

* test override not required

* bump version

* auto-bump connector version [ci skip]

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-01 15:08:42 +05:30
Rodi Reich Zilberman
248da78ba7 Make error more descriptive in case of no encryption state (#17299)
* Make error more descriptive in case of no encryption state

* Fix failing test

* Change error message on strict-encrypt postgres destination as well. Fix failing test

* update versions and changelogs

* auto-bump connector version [ci skip]

* auto-bump connector version [ci skip]

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-09-28 15:26:09 -07:00