twalthr commented on code in PR #24818: URL: https://github.com/apache/flink/pull/24818#discussion_r1620578309
########## flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/RawToBinaryCastRule.java: ########## @@ -62,7 +62,7 @@ public boolean canFail(LogicalType inputLogicalType, LogicalType targetLogicalTy // new behavior isNull$290 = isNull$289; if (!isNull$290) { - byte[] deserializedByteArray$76 = result$289.toBytes(typeSerializer$292); + byte[] deserializedByteArray$76 = result$289.toBytes(typeSerializer$292.getInnerSerializer()); Review Comment: Why do we actually need the call to `getInnerSerializer()` during runtime shouldn't we simply use this serializer as the `typeSerializer$292` for code generation? Or does the implementation not allow this? -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org