Skip to content

Commit 44c97a3

Browse files
committed
【fix】decode error
1 parent 4c3cd67 commit 44c97a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/com/dtstack/flink/sql/format/dtnest/DtNestRowDeserializationSchema.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ public DtNestRowDeserializationSchema(TypeInformation<Row> typeInfo, Map<String,
7474

7575
@Override
7676
public Row deserialize(byte[] message) throws IOException {
77-
String data = new String(message);
78-
String decoderStr = new String(data.getBytes(charsetName), StandardCharsets.UTF_8);
77+
String decoderStr = new String(message, charsetName);
7978
JsonNode root = objectMapper.readTree(decoderStr);
8079
this.parseTree(root, null);
8180
Row row = new Row(fieldNames.length);

0 commit comments

Comments
 (0)