[CDAP-21093] Add ExternalDocumentationLink in abstract sink#533
Merged
psainics merged 1 commit intodata-integrations:developfrom Jan 22, 2025
Merged
Conversation
c1663bf to
2018b92
Compare
2018b92 to
08ccb27
Compare
08ccb27 to
5952ef7
Compare
sahusanket
reviewed
Dec 27, 2024
database-commons/src/main/java/io/cdap/plugin/db/sink/AbstractDBSink.java
Show resolved
Hide resolved
sahusanket
reviewed
Dec 27, 2024
database-commons/src/main/java/io/cdap/plugin/db/source/AbstractDBSource.java
Show resolved
Hide resolved
| externalDocumentationLink); | ||
| } | ||
| throw ErrorUtils.getProgramFailureException(new ErrorCategory(ErrorCategory.ErrorCategoryEnum.PLUGIN), | ||
| e.getMessage(), errorMessageWithDetails, ErrorType.USER, false, ErrorCodeType.SQLSTATE, |
Contributor
There was a problem hiding this comment.
why errorType USER, this should come based on sqlState right?
Contributor
Author
There was a problem hiding this comment.
This is in abstract sink, sqlState is not reliable. this snippet was taken from the abstract source.
Contributor
Author
There was a problem hiding this comment.
| @@ -175,6 +179,16 @@ protected String getErrorDetailsProviderClassName() { | |||
| return DBErrorDetailsProvider.class.getName(); | |||
Contributor
There was a problem hiding this comment.
can we also change this to null in both source & sink?
Contributor
Author
There was a problem hiding this comment.
WIP Ref: #540
Looking into the E2E failures.
itsankit-google
approved these changes
Jan 22, 2025
This file contains hidden or 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
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.
Add ExternalDocumentationLink in abstract sink
Jira : CDAP-21093
Description
The AbstractDBSink class also throw SQLException, we also need to make the changes similar to AbstractDBSource there as well.
Ref: #530
Code change
CloudSQLMySQLSink.javaCloudSQLPostgreSQLSink.javaAbstractDBSink.javaAbstractDBSource.javaMysqlSink.javaPostgresSink.java