Skip to content

Commit

Permalink
[fix][dingo-calcite] Support hashjoin nonEqui expr
Browse files Browse the repository at this point in the history
  • Loading branch information
guojn1 committed Feb 11, 2025
1 parent a860ce8 commit cea52cb
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 513 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ public void execute(DingoSqlCreateView sqlCreateView, CalcitePrepare.Context con
int precision = f.getType().getPrecision();
int scale = f.getType().getScale();
String name = f.getType().getSqlTypeName().getName();
if ("BIGINT".equals(name) || "FLOAT".equals(name)) {
if ("BIGINT".equals(name) || "FLOAT".equals(name) || "INTEGER".equals(name)) {
precision = -1;
scale = -2147483648;
}
Expand Down
216 changes: 0 additions & 216 deletions dingo-calcite/src/main/java/io/dingodb/calcite/plan/RelUtil.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ public final class DingoRules {
public static final DingoDocumentProjectRule DINGO_DOCUMENT_PROJECT_RULE
= DingoDocumentProjectRule.Config.DEFAULT.toRule();

public static final FilterOrJoinRule filterOrJoinRule = FilterOrJoinRule.Config.DEFAULT.toRule();

private static final List<RelOptRule> rules = ImmutableList.of(
CoreRules.AGGREGATE_EXPAND_DISTINCT_AGGREGATES,
Expand All @@ -206,7 +205,6 @@ public final class DingoRules {
CoreRules.JOIN_ASSOCIATE,
//JoinPushThroughJoinRule.LEFT,
//JoinPushThroughJoinRule.RIGHT,
filterOrJoinRule,
CoreRules.PROJECT_SUB_QUERY_TO_CORRELATE,
DingoPhysicalRules.DINGO_HASH_JOIN_RULE,
DingoPhysicalRules.DINGO_ROOT_RULE,
Expand Down
Loading

0 comments on commit cea52cb

Please # to comment.