SEPURI-SAI-KRISHNA commented on PR #29587:
URL: https://github.com/apache/flink/pull/29587#issuecomment-6488275451

   No SQL repro, you are right.
   
   addReusableObjectInternal deep copies the converter through Java 
serialization, and that recursion runs over the nested ValueWriter tree. On JDK 
17 and 21, default 1 MiB stack, a MAP<STRING, ...> column nested 240 deep 
already fails to plan with a bare StackOverflowError in deserializeObject, 
while convert called directly still succeeds at 1500. ToVariantConverter.create 
has one caller outside tests, ToVariantCastRule:169, so that deep copy is 
always on the path.
   
   It needs a column: CAST of a typed NULL literal folds to null:VARIANT before 
the cast rule runs. Repro for FLINK-41257 if useful.


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