davidradl commented on code in PR #25418:
URL: https://github.com/apache/flink/pull/25418#discussion_r1778517118


##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/ExprCodeGenerator.scala:
##########
@@ -679,13 +679,15 @@ class ExprCodeGenerator(ctx: CodeGeneratorContext, 
nullableInput: Boolean)
 
       // casting
       case CAST =>
+        val legacyCastEnabled = ctx.tableConfig
+          .get(ExecutionConfigOptions.TABLE_EXEC_LEGACY_CAST_BEHAVIOUR)
+          .isEnabled

Review Comment:
   I was expecting that if legacy cast is enabled - it would drive the same 
code as try cast - as per the [documentation](legacy-cast-behaviour).  



-- 
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]

Reply via email to