In my opinion, if data type is unknown, we should return origin data.
For example, while starrocks table not has a column named c1, but the user insert data has c1 and c1 value is ""(blank string) through flink, it will encounter IndexOfRangeException.
The starrocks connector handle UNKNOWN data type as same as json. It is unreasonable. So, it need to be modified.
https://github.com/StarRocks/starrocks-connector-for-apache-flink/blob/cc8689d6ab75f68416491a1b841bdea1eaf85f4f/src/main/java/com/starrocks/connector/flink/row/sink/StarRocksTableRowTransformer.java#L126-L135
In my opinion, if data type is unknown, we should return origin data.
For example, while starrocks table not has a column named c1, but the user insert data has c1 and c1 value is ""(blank string) through flink, it will encounter IndexOfRangeException.