linjianchang commented on code in PR #3995:
URL: https://github.com/apache/flink-cdc/pull/3995#discussion_r2675514566
##########
flink-cdc-connect/flink-cdc-source-connectors/flink-connector-debezium/src/main/java/org/apache/flink/cdc/debezium/event/DebeziumSchemaDataTypeInference.java:
##########
@@ -185,6 +185,9 @@ protected DataType inferBytes(Object value, Schema schema) {
if (precision > DecimalType.MAX_PRECISION) {
return DataTypes.STRING();
}
+ if (scale < 0 || scale > 36) {
+ return DataTypes.STRING();
Review Comment:
> Please explain why this change is necessary.
<img width="1133" height="770" alt="企业微信截图_17679497824493"
src="https://github.com/user-attachments/assets/e5a85333-7b57-4aa0-82d7-42e22439881b"
/>
"Does Oracle's 'nember' type have a Scala value?"
It is in the range of 0-36 in decimal, so it is not in the decimal range
Convert to string
--
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]