Timm0 commented on code in PR #30095:
URL: https://github.com/apache/flink/pull/30095#discussion_r4718255142
##########
flink-python/pyflink/table/expression.py:
##########
Review Comment:
Could we also mention the conversion here in the DocString?
##########
flink-python/pyflink/table/expression.py:
##########
@@ -281,8 +284,17 @@ def _to_java_varargs(args):
parameter.
"""
gateway = get_gateway()
- return to_jarray(gateway.jvm.Object, [_get_java_expression(arg) for arg in
args])
-
+ ApiExpressionUtils =
gateway.jvm.org.apache.flink.table.expressions.ApiExpressionUtils
Review Comment:
The lookup here runs currently on every call. Could we move it into the `if`
case below so we only do it when we need it?
--
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]