[jira] [Created] (FLINK-19675) The plan of is incorrect when Calc contains WHERE clause, composite fields access and Python UDF at the same time

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-19675) The plan of is incorrect when Calc contains WHERE clause, composite fields access and Python UDF at the same time

Shang Yuanchun (Jira)
Dian Fu created FLINK-19675:
-------------------------------

             Summary: The plan of is incorrect when Calc contains WHERE clause, composite fields access and Python UDF at the same time
                 Key: FLINK-19675
                 URL: https://issues.apache.org/jira/browse/FLINK-19675
             Project: Flink
          Issue Type: Bug
          Components: API / Python
    Affects Versions: 1.11.0, 1.10.1
            Reporter: Dian Fu
            Assignee: Dian Fu
             Fix For: 1.10.3, 1.11.3


For the following job:
{code}
SELECT a, pyFunc1(b, d._1) FROM MyTable WHERE a + 1 > 0
{code}

The plan is as following:
{code}
FlinkLogicalCalc(select=[a, pyFunc1(b, f0) AS EXPR$1])
+- FlinkLogicalCalc(select=[a, b, d._1 AS f0])
 +- FlinkLogicalLegacyTableSourceScan(table=[[default_catalog, default_database, MyTable, source: [TestTableSource(a, b, c, d)]]], fields=[a, b, c, d])
{code}
It's incorrect as the where condition is missing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)