snuyanzin commented on code in PR #26856:
URL: https://github.com/apache/flink/pull/26856#discussion_r2245094594


##########
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/stream/sql/MultiJoinTest.xml:
##########
@@ -35,13 +35,13 @@ LogicalProject(user_id_0=[$0], name=[$1], order_id=[$3], 
payment_id=[$6], locati
     <Resource name="optimized exec plan">
       <![CDATA[
 Calc(select=[user_id_0, name, order_id, payment_id, location])
-+- MultiJoin(joinFilter=[AND(=($0, $8), OR(>=($2, $7), <($7, 0)))], 
joinTypes=[[INNER, LEFT, INNER, LEFT]], joinConditions=[[true, =($0, $4), 
AND(=($0, $8), OR(>=($2, $7), <($7, 0))), =($8, $10)]], 
joinAttributeMap=[{1=[LeftInputId:0;LeftFieldIndex:0;RightInputId:1;RightFieldIndex:1;],
 2=[LeftInputId:0;LeftFieldIndex:0;RightInputId:2;RightFieldIndex:2;], 
3=[LeftInputId:2;LeftFieldIndex:2;RightInputId:3;RightFieldIndex:1;]}], 
select=[user_id_0,name,cash,order_id,user_id_1,product,payment_id,price,user_id_2,location,user_id_3],
 rowType=[RecordType(VARCHAR(2147483647) user_id_0, VARCHAR(2147483647) name, 
INTEGER cash, VARCHAR(2147483647) order_id, VARCHAR(2147483647) user_id_1, 
VARCHAR(2147483647) product, VARCHAR(2147483647) payment_id, INTEGER price, 
VARCHAR(2147483647) user_id_2, VARCHAR(2147483647) location, 
VARCHAR(2147483647) user_id_3)])
++- MultiJoin(joinFilter=[AND(=($0, $7), OR(>=($2, $6), <($6, 0)))], 
joinTypes=[[INNER, LEFT, INNER, LEFT]], joinConditions=[[true, =($0, $4), 
AND(=($0, $7), OR(>=($2, $6), <($6, 0))), =($7, $9)]], 
joinAttributeMap=[{1=[LeftInputId:0;LeftFieldIndex:0;RightInputId:1;RightFieldIndex:1;],
 2=[LeftInputId:0;LeftFieldIndex:0;RightInputId:2;RightFieldIndex:2;], 
3=[LeftInputId:2;LeftFieldIndex:2;RightInputId:3;RightFieldIndex:1;]}], 
select=[user_id_0,name,cash,order_id,user_id_1,payment_id,price,user_id_2,location,user_id_3],
 rowType=[RecordType(VARCHAR(2147483647) user_id_0, VARCHAR(2147483647) name, 
INTEGER cash, VARCHAR(2147483647) order_id, VARCHAR(2147483647) user_id_1, 
VARCHAR(2147483647) payment_id, INTEGER price, VARCHAR(2147483647) user_id_2, 
VARCHAR(2147483647) location, VARCHAR(2147483647) user_id_3)])
    :- Exchange(distribution=[hash[user_id_0]])
    :  +- ChangelogNormalize(key=[user_id_0])
    :     +- Exchange(distribution=[hash[user_id_0]])
    :        +- TableSourceScan(table=[[default_catalog, default_database, 
Users]], fields=[user_id_0, name, cash])
    :- Exchange(distribution=[hash[user_id_1]])
-   :  +- TableSourceScan(table=[[default_catalog, default_database, Orders]], 
fields=[order_id, user_id_1, product])
+   :  +- TableSourceScan(table=[[default_catalog, default_database, Orders, 
project=[order_id, user_id_1], metadata=[]]], fields=[order_id, user_id_1])

Review Comment:
   same question aobut empry array



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to