Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Dec 26, 2024
1 parent 5f177f3 commit 1cee695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.apache.doris.nereids.trees.plans.Plan;
import org.apache.doris.nereids.trees.plans.logical.LogicalProject;
import org.apache.doris.nereids.trees.plans.logical.LogicalTopN;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand All @@ -52,6 +53,7 @@
*/
public class AdjustTopNProject extends OneRewriteRuleFactory {
public static final Logger LOG = LogManager.getLogger(AdjustTopNProject.class);

@Override
public Rule build() {
return logicalTopN(logicalProject(logicalAggregate()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package org.apache.doris.nereids.rules.rewrite;

import com.google.common.collect.ImmutableList;
import org.apache.doris.nereids.properties.OrderKey;
import org.apache.doris.nereids.trees.expressions.Alias;
import org.apache.doris.nereids.trees.expressions.Slot;
Expand All @@ -30,12 +29,15 @@
import org.apache.doris.nereids.util.MemoTestUtils;
import org.apache.doris.nereids.util.PlanChecker;
import org.apache.doris.nereids.util.PlanConstructor;

import com.google.common.collect.ImmutableList;
import org.junit.jupiter.api.Test;

import java.util.List;

public class AdjustTopNProjectTest implements MemoPatternMatchSupported {
LogicalOlapScan score = new LogicalOlapScan(StatementScopeIdGenerator.newRelationId(), PlanConstructor.score);

@Test
void testTopNProject() {
Slot sid = score.getOutput().get(0);
Expand Down

0 comments on commit 1cee695

Please sign in to comment.