Skip to content

Commit b0882ae

Browse files
fixes
1 parent 2b9d0a2 commit b0882ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/cdap/plugin/salesforce/plugin/source/streaming/SalesforceStreamingSourceUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private static Object convertValue(Object value, Schema.Field field) {
150150
}
151151

152152
// NOTE: org.json >= 20230227 returns BigDecimal for all non-integer JSON numbers.
153-
if (value instanceof BigDecimal && fieldSchem aType.equals(Schema.Type.DOUBLE)) {
153+
if (value instanceof BigDecimal && fieldSchemaType.equals(Schema.Type.DOUBLE)) {
154154
// Avro Schema.Type.DOUBLE expects a Double instance (or primitive double) at serialization time,
155155
// so converting BigDecimal → double for compatibility.
156156
return ((BigDecimal) value).doubleValue();

0 commit comments

Comments
 (0)