Hisoka-X commented on code in PR #9374:
URL: https://github.com/apache/seatunnel/pull/9374#discussion_r2113855274
##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/JdbcInputFormat.java:
##########
@@ -155,12 +155,16 @@ public SeaTunnelRow nextRecord() {
} catch (SQLException se) {
throw new JdbcConnectorException(
CommonErrorCodeDeprecated.SQL_OPERATION_FAILED,
- "Couldn't read data - " + se.getMessage(),
+ String.format(
+ "Failed to read data from table '%s': %s",
+ splitTableId, se.getMessage()),
se);
} catch (NullPointerException npe) {
throw new JdbcConnectorException(
CommonErrorCodeDeprecated.SQL_OPERATION_FAILED,
- "Couldn't access resultSet",
+ String.format(
+ "Failed to access resultSet for table '%s':
NullPointer encountered",
Review Comment:
```suggestion
"Failed to access resultSet for table '%s':
NullPointerException occurred",
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]