[ 
https://issues.apache.org/jira/browse/FLINK-41647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timo Theusner updated FLINK-41647:
----------------------------------
    Description: 
Calling {{{}descriptor(){}}}, {{{}json_object(){}}}, {{json_array(), 
{{object_update()}}}} 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}}

  was:
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}}


> Fix PyFlink descriptor, json_object, json_array, object_update 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
>            Assignee: Federico Dolce
>            Priority: Major
>
> Calling {{{}descriptor(){}}}, {{{}json_object(){}}}, {{json_array(), 
> {{object_update()}}}} 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)

Reply via email to