-
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
bulk-cdk: add more exception classifier implementations, add extra checks #44824
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
check: | ||
jdbc: | ||
queries: | ||
- SELECT DATABASE_PATH() FROM DUAL |
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.
this returns NULL For in-memory H2 database instances, which is what we use in our tests
} | ||
} | ||
/** Convenience val for [getOrder]. */ | ||
val orderValue: Int |
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.
nice I like this - enables us to override some specific errors.
What
This PR adds:
JdbcExceptionClassifier
, the vendor code rules are read fromapplication.yml
;RegexExceptionClassifier
which replicates most of the functionality in the legacy CDK, except that here again the rule definitions are read fromapplication.yml
instead of being defined programmatically;CheckOperation
which for JDBC sources are implemented byJdbcCheckQueries
which execute a sequence of SQL queries (also defined inapplication.yml
) and if any of them return anything, that's thrown as aConfigErrorException
.This is required for airbyte-enterprise connector certification.
Informs https://github.com/airbytehq/airbyte-internal-issues/issues/9457
Informs https://github.com/airbytehq/airbyte-internal-issues/issues/9373
How
Micronaut makes it easy to defined strongly-typed object instances in a yaml file. Thanks, Micronaut!
Review guide
Commit by commit.
User Impact
None
Can this PR be safely reverted and rolled back?