1
0
mirror of synced 2026-01-18 15:02:51 -05:00
Commit Graph

259 Commits

Author SHA1 Message Date
VitaliiMaltsev
126ce3628b 🐛 Fixed connection leak in StreamingJdbcDatabase (#20888)
* Fixed connection leak in StreamingJdbcDatabase

* fixed checkstyle
2023-01-22 18:03:37 +02: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
Evan Tahler
f9bef16289 Add AllowedHosts to Actor Definitions and Config Database (#21363)
* Add AllowedHosts to actor_definitions and database

* use objects for better null-ness handling

* Tables.ACTOR_DEFINITIO
2023-01-13 21:30:52 +00:00
Greg Solovyev
1ed04fd232 Destination connector for teradata vantage (rebased community PR) (#21160)
* Destination connector for teradata vantage is implemented

* add teradata destination to seed yaml

* Add teradata destination to specs seed file

Co-authored-by: Satish Chinthanippu <satishchinthanippu@gmail.com>
2023-01-10 10:41:36 -06:00
Akash Kulkarni
bac789e2cb Code cleanup in SourceOperations (#20874)
* Refactor SourceOperations class

* More cleanup

* Addressing comments

* Formatting
2023-01-03 03:09:48 -08:00
Davin Chia
d98ddbbae7 Implement Progress Bar Persistence Read/Write (#20787)
Implement the persistence layer changes following #19191.

This PR handles writing and reading stats to the new stream stat_table and columns in the existing sync_stats table.

At the same time we introduce upserts of stats records - i.e. merge updates into a single record - in preparation for real time stats updates vs the current approach where a new stat record is always written.

There will be two remaining PRs after this:
- First PR will be to fully wire up and test the API.
- Second PR will be to actually save stats while jobs are running.
2022-12-28 13:47:42 -08:00
Jimmy Ma
094aff1520 Java connectors use protocol v0 objects (#20404)
* Dupl v0 objects

* v0 namespace swap

* Introduce some object conversions in the tests

* Update source-java-jdbc template

* Use v0 objects in db-lib

* Fix more protocol object references

* Fix arg capture in tests
2022-12-15 13:39:50 -08:00
andriikorotkov
eecfafd10e Remove NormalizationRunnerFactory (#20245)
* updated IntegrationLauncherConfig.yaml and added to this class suportDBT and normalizationImage fields. Added to the GenerateInputActivityImpl and TemporalClient classes code parts for read destination_definition.yaml and get suportDBT and normalizationImage fields. Added logging and comparing normalization images from NormalizationRunnerFactory and destination_definition.yaml

* updated minor remarks

* updated minor remarks

* fixed minor remarks

* added normalization data to the tests

* fixed minor remarks

* removed NormalizationRunnerFactory

* fixed remarks

* fixed remarks

* fixed remarks

* updated acceptance tests

* updated acceptance tests

* updated check_images_exist.sh script

* updated method for get normalization image name for destination acceptance test

* fixed code style

* fixed code style and removed tests data

* updated JobErrorReporterTest.java

* updated JobErrorReporterTest.java

* fixed remarks

* added integration type field to the dectination_definition file and actor_definition table

* fixed tests

* fixed tests

* fixed minor changes after pulling master changes

* fixed minor changes after pulling master changes

* renamed integrationType to normalizationIntegrationType/ fixed minor remarks

* renamed extra dependencies

* updated docs

* updated docs

* fixed minor remarks

* added NormalizationDestinationDefinitionConfig.yaml for StandardDestinationDefinition.yaml and updated configuration

* updated normalization tag

* updated DestinationAcceptanceTest.java

* updated DestinationAcceptanceTest.java

* updated imports and descriptions
2022-12-15 12:15:34 +02:00
Michael Siega
d7e11b6e3c database migration to add column for field selection info (#20202) 2022-12-08 00:12:50 +01:00
Akash Kulkarni
5d936cc713 Move handling TIMESTAMP_WITH_TIMEZONE to common JdbcSourceOperations (#19860)
* Refactor

* Fix build failures
2022-12-05 17:57:17 -08:00
Jonathan Pearlin
201df24f4d Enable PMD rule to prevent == string comparisons (#20080) 2022-12-05 12:54:36 -05:00
Akash Kulkarni
a3343efddb Revert "JDBC Sources: Wrap SQLTransientException with ConfigErrorException (#19711)" (#20031)
This reverts commit 9736352d20.
2022-12-02 12:38:01 -08:00
VitaliiMaltsev
9736352d20 JDBC Sources: Wrap SQLTransientException with ConfigErrorException (#19711)
* JDBC Sources: Wrap SQLTransientException with ConfigErrorException

* JDBC Sources: Wrap SQLTransientException with ConfigErrorException

* removed unneeded exception handling in check method

* updated exception's message

* add catch clause to avoid PMD rule violation

* add original exception to the Throwable

* add catch clause
2022-12-01 17:25:34 +02:00
Akash Kulkarni
865b580776 DB sources data type support - adding new data types (#19679)
* Introduce JsonSchemaTypeUtil + refactor code

* Update JsonSchemaPrimitiveUtil.java

Comment

* Update dynamodb.md

* Create acceptance-test-config.yml

* fix merge break

* formatting

* Fix formatting

* Code cleanup

* Update DataTypeEnumTest.java
2022-11-29 09:58:42 -08: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
Charles
1d16a01522 add base test class for config db resources (#19640) 2022-11-28 08:31:34 -08:00
Joey Marshment-Howell
43feaccdcf 🪟🔧 Use workspace-scoped endpoints for connector CRUD (#19221)
* fix button loading state when creating connector

* use workspace scoped endpoints

* get and update methods

* backfill script

* commit new migration file

Co-authored-by: Xiaohan Song <xiaohan@airbyte.io>
2022-11-16 11:08:22 -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
Davin Chia
8a0d12fc80 Add migrations to support progress bar. (#19191)
Follow up to #18953.

Implement all the DB migrations required for a progress bar.

The main change here is to support saving:

the estimated records/bytes at the sync level
the estimated records/bytes and emitted records/bytes at the stream level
After this, I'll put up a PR for the persistence layer changes, which will writing to and reading from these columns.

Finally, I'll wire this into the API changes, which are currently stubs.

- add the estimated_records and estimated_bytes columns to the SyncStats table.
- create a stream_stats table
  - estimated and emitted records/bytes column
  - contains attempt_id and stream_name columns. Unique constraints on these two columns.
  - foreign key to the attempt_id table.
  - this table hopefully sets us up for the parallel sync work.
2022-11-10 22:35:15 -08:00
perangel
2cb8c984bd Add missing indices for status columns (#19234)
* Add missing indices for `status` columns

* Remove TODO and delete .class files

* Dump schema

* Run gradle format

* Bump database schema version in Bootloader test
2022-11-10 09:21:57 -05: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
Ryan Fu
804af5d8ed Adds TLS check to mongodb destination and migrates util constants (#18892)
* Adds TLS check to mongodb destination and migrates util constants

* Migrates MongodbSourceUitls to general purprose Utils file

* Updates expected_spec.json to include SSH tunnel

* Bumps connector version and removes connector from being hidden in UI

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-11-08 13:21:15 -08:00
andriikorotkov
350d5443a1 Add normalization to destination definition and actor definition table (#18300)
* updated StandardDestinationDefinition.yaml, added normalization and tags to the destination_definition.yaml and added information about normalization and DBT to the ACTOR_DEFINITION table

* updated docs

* updated BootloaderAppTest.java for new migration

* updated schema dump

* Update normalization version and fix bigquery

* Use varchar 255

* Update migration version to the latest

* Update normalized table schema file and add comment

* Revert "Use varchar 255"

This reverts commit e182466e66.

* Use varchar 255

* Add unit test for migration

* Format code

Co-authored-by: Liren Tu <tuliren@gmail.com>
2022-11-04 14:19:50 -07:00
Liren Tu
104c91c519 Fix migration dev center schema dump by run db-specific initialization script (#18984)
* Run db-specific initialization script

* Refactor code

* Use constants

* Add unit test for dev center
2022-11-04 13:28:54 -07:00
Jimmy Ma
74792c1336 Add unsupported_protocol_version column to Connection (#18876) 2022-11-02 16:43:16 -07:00
Ivica Taseski
d9acf47efa 🎉 New destination: Yugabytedb (#18039)
* add yugabytedb destination connector

* add dest def + add changelog

* auto-bump connector version

Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>
Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-28 09:16:03 -03:00
Eugene
a3c00fadb3 fixed check-style (#18390) 2022-10-24 21:02:23 +03:00
Eugene
5ab81e6ced 🎉Destination-elasticsearch: added custom sertificate support (#18177)
* [11356] Destination-elasticsearch: added custom certificate support
2022-10-24 19:45:37 +03: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
Benoit Moriceau
adf2c5ff8e Bmoric/remove dep connector worker (#17977)
* test [ci skip]

* Autogenerated files

* Add missing annotation

* Remove unused json2Schema block from worker

* Move tess

* Missing deps and format

* Fix test build

* TMP

* Add missing dependencies

* PR comments

* Tmp

* [ci skip] Tmp

* Fix acceptance test and add the seed dependency

* Fix build

* For diff

* tmp

* Build pass

* make the worker to be  on the platform only

* fix setting.yaml

* remove dependency

* Fix pmd

* Fix Cron

* Add chart

* Fix cron

* Fix server build.gradle

* Fix jar conflict

* PR comments

* Add cron micronaut environemnt

* Update required build path

* remove all dependencies on worker

* Typo

* Add gradle exclusions

* Add exclusion to avoid conflict

* more exclusion

* Move more class

* Exclude worker from the general build

* Fix connector build
2022-10-18 11:51:25 -07:00
Liren Tu
c872042a6b Databricks destination: ensure encrypted JDBC connection (#18032)
* Add ssl=1 to databricks jdbc url

* Bump version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-15 14:10:48 -07:00
Jonathan Pearlin
4ad7c97ac9 Update schema dumps (#17960) 2022-10-13 12:55:30 -04:00
Jonathan Pearlin
27e089eabc Ensure database initialization in test container (#17697)
* Ensure database initialization in test container

* Remove unused import

* Update schema dump

* Add schema dump

Co-authored-by: terencecho <terence@airbyte.io>
2022-10-13 12:17:36 -04: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
Xiaohan Song
fbead4d7d1 Add a new column in attempts table (#17806)
* migration attempts

* migrator script

* version fix
2022-10-11 11:27:53 -07:00
Michael Siega
7009bbeb82 db migrations to support new webhook operations (#17671) 2022-10-08 00:04:01 +02:00
Anne
b22a4399c8 Add connection migrations for schema changes (#17651) 2022-10-07 13:28:11 -07:00
Jonathan Pearlin
ca302bbc37 Replace env var usage with Flyway configuration (#17628) 2022-10-06 15:38:31 -04:00
terencecho
a7a1c7f916 Create geography_type enum and add geography column in connection and workspace table (#16818)
* init commit of geography_type and column

* add schema dump

* confirm prod database was meant to be changed

* add AUTO to geography

* set default and not nullable, also edit workspace table

* update version number

* update schema dump

Co-authored-by: pmossman <parker@airbyte.io>
2022-10-05 14:39:25 -07:00
Jonathan Pearlin
4ccbc67fff Use constant for keystore prefix in test (#17571) 2022-10-04 13:22:23 -04: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
Greg Solovyev
5f25d2d069 Greg/clickhouse polishing (#17483)
* add icon for clickhouse in destination folder

* use http port only in clickhouse

* declare driver: http for dbt explicitly

* bump destination clickhouse version

Co-authored-by: restrry <restrry@gmail.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-01 12:40:19 -07:00
Jimmy Ma
89558542f5 Fix format (#17066) 2022-09-22 15:23:20 -07:00
Oleksandr Sheheda
6465aae0dc [16617] Source BigQuery: added user agent header (#16902)
* [16617] Source BigQuery: added user agent header

* [16617] Source BigQuery: added user agent header

* [16617] Source BigQuery: added user agent header
updated image tag, added changelog

* [16617] Source BigQuery: added user agent header
fixed NPE

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-09-22 21:45:06 +03:00
Anne
e462f695a2 Normalization Summaries table and read/write methods (#16655)
* Add migration to create normalization summaries table
- read/write methods for normalization summary
2022-09-14 14:47:05 -07:00
Jonathan Pearlin
474642868c Convert airbyte-workers to Micronaut (#16434)
* WIP Convert airbyte-workers to Micronaut framework

* Rebase cleanup

* Fix broken tests

* Simplify code

* Support control vs data plane configuration

* make WORFKLOW_PROXY_CACHE non-static to avoid cacheing mocks in unit tests

* Formatting

* Pairing on Worker Micronaut (#16364)

* add RouteToSyncTaskQueue activity

* use new route activity in connection manager workflow

* format

* call router service for task queue

* Revert temporal proxy changes

* Formatting

* Fix default value

* register new route activity in test

* fix SyncWorkflowTest now that it isn't doing any routing

* Update dependencies

* More dependency updates

* Update dependencies

* Improve conditional bean check

* Match existing Optional functionality

* Add notEquals check

* Add missing env var to Helm chart

* Fix typo

* Mark LogConfigs as Singleton

* Env vars for log/state storage type

* Remove use of Optional in bean declarations

* Fix typo in config property name

* Support Temporal Cloud namespace

* Change to @Value

* Use correct value for conditional check

* Upgrade Micronaut

* Fix merge conflict

* Formatting

* Add missing env var

* Use sync task queue environment variable

* Handle sync task queue as set

* format and force http

* Handle case where sync task queue is empty

* Add correct path to config property

* Remove unused import

* Remove unused parameter

* Formatting

* Use pattern for condition process factory beans

* Cleanup

* PR feedback

* Revert hack for testing

Co-authored-by: pmossman <parker@airbyte.io>
2022-09-14 13:10:23 -04:00
VitaliiMaltsev
022b8db345 Destination: BigQuery (denormalized typed struct) - Could not evaluate union, field is expected to be one of these: NULL, STRING. (#16401)
* Fixed bucket naming for S3

* removed redundant configs

* BigQuery Denormalized: Could not evaluate union on Mongo formatted type

* add test

* fixed BigQuery tests

* updated changelog

* replaced star import

* bump version

* auto-bump connector version [ci skip]

* fixed compilation error

* bump mongodb-strict-encrypt

* auto-bump connector version [ci skip]

* removed unused method

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-09-13 19:10:09 +03:00
Subodh Kant Chaturvedi
43076ee3ce improve error message for tables with invalid columns as cursor (#15317)
* implement validation for cursor type before reading data

* rename class

* add test

* fix merge conflicts

* address review comments

* fix test
2022-09-13 12:06:38 +05:30
Ryan Fu
50a8d03c4c Cleans and Rebase Error Message Factory PR (#16202)
* Cleaned error messages factory PR

* Bumped MySQL and Postgres version

* Fixed messages and typos in test

* Fixes the changelog conflict with per-stream state

* Added note for flaky test

* Bumps mysql version to match changelog

* Added exception objects to all LOGGER.error for more visibility

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-09-12 16:08:11 -07:00