lowka commented on code in PR #2443:
URL: https://github.com/apache/ignite-3/pull/2443#discussion_r1296943328


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/rel/set/IgniteMapSetOp.java:
##########
@@ -66,6 +68,32 @@ default RelDataType buildRowType() {
         return builder.build();
     }
 
+    /**
+     * Creates a row type produced by MAP phase of INTERSECT/EXCEPT operator.
+     * For input row (a:type1, b:type2) and {@code inputsNum} = {@code 3} it 
produces the following row type:
+     * <pre>
+     *     f0: type1
+     *     f1: type2
+     *     _count_0: int
+     *     _count_1: int
+     *     _count_2: int
+     * </pre>
+     */
+    public static RelDataType buildRowType(IgniteTypeFactory typeFactory, 
RelDataType rowType, int inputsNum) {

Review Comment:
   Maybe this method should be moved to `PlanUtils` (as in PR with aggregates - 
https://github.com/apache/ignite-3/pull/2312). Alternatively,  it was a mistake 
moving type assembly related methods there in aggregates related PR, since 
other operators define helper functions closer to code where those functions 
are used.
   



-- 
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]

Reply via email to