File tree 5 files changed +53
-0
lines changed
database-commons/src/main/java/io/cdap/plugin/util
main/java/io/cdap/plugin/oracle
5 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ public final class DBUtils {
66
66
public static final String CLOUDSQLMYSQL_SUPPORTED_DOC_URL = "https://cloud.google.com/sql/docs/mysql/error-messages" ;
67
67
public static final String POSTGRES_SUPPORTED_DOC_URL =
68
68
"https://www.postgresql.org/docs/current/errcodes-appendix.html" ;
69
+ public static final String ORACLE_SUPPORTED_DOC_URL = "https://docs.oracle.com/en/error-help/db/ora-index.html" ;
69
70
public static final String CLOUDSQLPOSTGRES_SUPPORTED_DOC_URL =
70
71
"https://cloud.google.com/sql/docs/postgres/error-messages" ;
71
72
Original file line number Diff line number Diff line change @@ -338,7 +338,9 @@ Feature: Oracle - Verify data transfer from Oracle source to BigQuery sink
338
338
And Save and Deploy Pipeline
339
339
And Run the Pipeline in Runtime
340
340
And Wait till pipeline is in running state
341
+ And Open and capture logs
341
342
And Verify the pipeline status is "Failed"
343
+ And Close the pipeline logs
342
344
Then Open Pipeline logs and verify Log entries having below listed Level and Message:
343
345
| Level | Message |
344
346
| ERROR | errorLogsMessageInvalidBoundingQuery |
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright © 2025 Cask Data, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5
+ * use this file except in compliance with the License. You may obtain a copy of
6
+ * the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+ * License for the specific language governing permissions and limitations under
14
+ * the License.
15
+ */
16
+
17
+ package io .cdap .plugin .oracle ;
18
+
19
+ import io .cdap .plugin .common .db .DBErrorDetailsProvider ;
20
+ import io .cdap .plugin .util .DBUtils ;
21
+
22
+ /**
23
+ * A custom ErrorDetailsProvider for Oracle plugin.
24
+ */
25
+ public class OracleErrorDetailsProvider extends DBErrorDetailsProvider {
26
+
27
+ @ Override
28
+ protected String getExternalDocumentationLink () {
29
+ return DBUtils .ORACLE_SUPPORTED_DOC_URL ;
30
+ }
31
+ }
Original file line number Diff line number Diff line change @@ -82,6 +82,15 @@ protected LineageRecorder getLineageRecorder(BatchSinkContext context) {
82
82
return new LineageRecorder (context , asset );
83
83
}
84
84
85
+ @ Override
86
+ protected String getErrorDetailsProviderClassName () {
87
+ return OracleErrorDetailsProvider .class .getName ();
88
+ }
89
+
90
+ @ Override
91
+ protected String getExternalDocumentationLink () {
92
+ return DBUtils .ORACLE_SUPPORTED_DOC_URL ;
93
+ }
85
94
86
95
/**
87
96
* Oracle action configuration.
Original file line number Diff line number Diff line change @@ -71,6 +71,16 @@ protected Class<? extends DBWritable> getDBRecordType() {
71
71
return OracleSourceDBRecord .class ;
72
72
}
73
73
74
+ @ Override
75
+ protected String getExternalDocumentationLink () {
76
+ return DBUtils .ORACLE_SUPPORTED_DOC_URL ;
77
+ }
78
+
79
+ @ Override
80
+ protected String getErrorDetailsProviderClassName () {
81
+ return OracleErrorDetailsProvider .class .getName ();
82
+ }
83
+
74
84
@ Override
75
85
protected LineageRecorder getLineageRecorder (BatchSourceContext context ) {
76
86
String fqn = DBUtils .constructFQN ("oracle" ,
You can’t perform that action at this time.
0 commit comments