JNSimba commented on PR #646: URL: https://github.com/apache/doris-flink-connector/pull/646#issuecomment-4088965112
In FlinkSQL scenarios, when concatenating RowData, it's essential to adhere to the Flink table's schema. For example, if the Flink schema is [id, a, b, c, d], even if the upstream only sends id and a, the RowData will still be concatenated according to the schema, resulting in displayed concatenations of c=null and d=null. This would then modify the data in c and d. However, if the Flink schema only defines id and a, then partial column updates can achieve the desired result. But if the upstream might send [id, a], [id, b], [id, c], then you must use DataStream's SimpleStringSerializer to write the data in JSON format. Furthermore, it's crucial to ensure that the columns passed from the upstream are truly only these few columns. For instance, it's uncertain whether FlinkSQL or Kafka will add null columns to align with the source schema. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
