Timo Theusner created FLINK-41647:
-------------------------------------
Summary: Fix PyFlink descriptor, json_object, json_array and
object_of expressions
Key: FLINK-41647
URL: https://issues.apache.org/jira/browse/FLINK-41647
Project: Flink
Issue Type: Bug
Components: API / Python
Reporter: Timo Theusner
Calling {{descriptor()}}, {{json_object()}}, {{json_array()}} or
{{object_of()}} in PyFlink fails with {{Py4JException: Method ...([...]) does
not exist}}. {{_varargs_op}} in {{pyflink/table/expressions.py}} passes the
trailing arguments one by one, but py4j does not pack them into the Java
varargs array. The functions should build the same expressions as their Java
counterparts in {{Expressions}}.
Proposed Changes
* Pass the column names of {{descriptor}} as a Java {{String[]}} in
{{pyflink/table/expressions.py}}
* Pass the trailing arguments of {{json_object}}, {{json_array}} and
{{object_of}} as a Java {{Object[]}} in {{_varargs_op}}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)