junmuz commented on code in PR #11101:
URL: https://github.com/apache/paimon/pull/11101#discussion_r4544292281
##########
paimon-flink/paimon-flink-cdc/src/main/java/org/apache/paimon/flink/action/cdc/ComputedColumnUtils.java:
##########
@@ -58,6 +68,11 @@ public static List<ComputedColumn> buildComputedColumns(
DataField::type,
(v1, v2) -> v2));
+ for (CdcMetadataConverter converter : metadataConverters) {
+ typeMapping.put(
+ toLowerCaseIfNeed(converter.columnName(), caseSensitive),
converter.dataType());
Review Comment:
Addressed in 3f686fdb56.
Metadata types now use putIfAbsent, preserving existing source-field types.
Metadata values are kept in a separate map during computed-column evaluation,
so source fields retain precedence—including null values and schema-declared
fields omitted from the payload. Metadata values are therefore no longer
accidentally decoded as Base64 source data.
Primary-key validation also distinguishes source-field references from
metadata dependencies, with runtime validation covering the existing-table
fallback when the source schema cannot be retrieved.
--
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]