gj-zhang commented on code in PR #33: URL: https://github.com/apache/incubator-doris-flink-connector/pull/33#discussion_r892043741
########## flink-doris-connector/src/main/java/org/apache/doris/flink/sink/writer/RowDataSerializer.java: ########## @@ -33,36 +34,32 @@ import static org.apache.doris.flink.sink.writer.LoadConstants.DORIS_DELETE_SIGN; import static org.apache.doris.flink.sink.writer.LoadConstants.JSON; import static org.apache.doris.flink.sink.writer.LoadConstants.NULL_VALUE; -import static org.apache.flink.table.data.RowData.createFieldGetter; /** * Serializer for RowData. */ public class RowDataSerializer implements DorisRecordSerializer<RowData> { String[] fieldNames; - RowData.FieldGetter[] fieldGetters; String type; private ObjectMapper objectMapper; private final String fieldDelimiter; private final boolean enableDelete; + private final DorisRowConverter rowConverter; - private RowDataSerializer(String[] fieldNames, DataType[] dataTypes, String type, String fieldDelimiter, boolean enableDelete) { + private RowDataSerializer(String[] fieldNames, RowType rowType, String type, String fieldDelimiter, boolean enableDelete) { Review Comment: yes. it be better. -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org