You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "laglangyue (via GitHub)" <gi...@apache.org> on 2023/03/30 14:58:57 UTC
[GitHub] [incubator-seatunnel] laglangyue commented on a diff in pull request #4439: [Bug][Connector][JDBC] jdbc source partition column support decimal type
laglangyue commented on code in PR #4439:
URL: https://github.com/apache/incubator-seatunnel/pull/4439#discussion_r1153396524
##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/source/JdbcSource.java:
##########
@@ -236,6 +237,6 @@ private PartitionParameter initPartitionParameterAndExtendSql(Connection connect
}
private boolean isNumericType(SeaTunnelDataType<?> type) {
- return type.equals(BasicType.INT_TYPE) || type.equals(BasicType.LONG_TYPE);
+ return type.equals(BasicType.INT_TYPE) || type.equals(BasicType.LONG_TYPE) || type instanceof DecimalType;
Review Comment:
DecimalType.equals(type)
and decimal may cause some exception for spilt, because how solve the float data?
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org