Vladsz83 commented on code in PR #9987:
URL: https://github.com/apache/ignite/pull/9987#discussion_r861727718


##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rel/IgniteSort.java:
##########
@@ -37,31 +37,66 @@
 import 
org.apache.ignite.internal.processors.query.calcite.trait.IgniteDistributions;
 import org.apache.ignite.internal.processors.query.calcite.trait.TraitUtils;
 
+import static 
org.apache.ignite.internal.processors.query.calcite.metadata.cost.IgniteCost.FETCH_IS_PARAM_FACTOR;
+import static 
org.apache.ignite.internal.processors.query.calcite.metadata.cost.IgniteCost.OFFSET_IS_PARAM_FACTOR;
 import static 
org.apache.ignite.internal.processors.query.calcite.trait.TraitUtils.changeTraits;
+import static 
org.apache.ignite.internal.processors.query.calcite.util.RexUtils.doubleFromRex;
 
 /**
  * Ignite sort operator.
  */
 public class IgniteSort extends Sort implements IgniteRel {
+    /** */
+    private final boolean enforcer;
+
     /**
      * Constructor.
      *
      * @param cluster Cluster.
      * @param traits Trait set.
      * @param child Input node.
      * @param collation Collation.
+     * @param offset Offset.
+     * @param fetch Limit.
+     * @param enforcer Enforcer flag.
      */
     public IgniteSort(
         RelOptCluster cluster,
         RelTraitSet traits,
         RelNode child,
-        RelCollation collation) {
-        super(cluster, traits, child, collation);
+        RelCollation collation,
+        RexNode offset,
+        RexNode fetch,
+        boolean enforcer) {
+        super(cluster, traits, child, collation, offset, fetch);
+
+        this.enforcer = enforcer;
+    }
+
+    /**
+     * Constructor.
+     *
+     * @param cluster Cluster.
+     * @param traits Trait set.
+     * @param child Input node.
+     * @param collation Collation.
+     * @param enforcer Enforcer flag.
+     */
+    public IgniteSort(
+        RelOptCluster cluster,
+        RelTraitSet traits,
+        RelNode child,
+        RelCollation collation,
+        boolean enforcer) {

Review Comment:
   Fixed



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