fdolce commented on code in PR #30095:
URL: https://github.com/apache/flink/pull/30095#discussion_r4717846048


##########
flink-python/pyflink/table/expression.py:
##########
@@ -275,6 +275,15 @@ def _get_java_expression(expr, to_expr: bool = False):
         return expr
 
 
+def _to_java_varargs(args):

Review Comment:
   So, the issue is that lists/dicts/sets etc need the manual conversion to 
work, while the other scalar types don't. Doing it is harmless, but also 
useless roundtrips. I modified the function here to check what to convert first 
and do the wrapping here though, I agree it's better this way, it should make 
making mistakes a bit harder than with the manual wrapping required only in 
certain cases. I also added a few more tests to cover 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to