Skip to content

Commit

Permalink
rebase code
Browse files Browse the repository at this point in the history
  • Loading branch information
seawinde committed Nov 8, 2023
1 parent 524a831 commit 6729084
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public AnalyticWindow getWindow() {
}

@Override
protected String getExprName() {
public String getExprName() {
if (!this.exprName.isPresent()) {
this.exprName = Optional.of(Utils.normalizeName(getFnCall().getExprName(), DEFAULT_EXPR_NAME));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public String getName() {
}

@Override
protected String getExprName() {
public String getExprName() {
if (!this.exprName.isPresent()) {
this.exprName = Optional.of(Utils.normalizeName(getName(), DEFAULT_EXPR_NAME));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public void setId(ExprId id) {

// Name of expr, this is used by generating column name automatically when there is no
// alias or is not slotRef
protected String getExprName() {
public String getExprName() {
if (!this.exprName.isPresent()) {
this.exprName = Optional.of(Utils.normalizeName(this.getClass().getSimpleName(), DEFAULT_EXPR_NAME));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private FunctionCallExpr() {
}

@Override
protected String getExprName() {
public String getExprName() {
if (!this.exprName.isPresent()) {
this.exprName = Optional.of(Utils.normalizeName(this.getFnName().getFunction(), DEFAULT_EXPR_NAME));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public static LiteralExpr getLiteralByMysqlType(int mysqlType) throws AnalysisEx
}

@Override
protected String getExprName() {
public String getExprName() {
if (!this.exprName.isPresent()) {
this.exprName = Optional.of("literal");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public String toColumnLabel() {
}

@Override
protected String getExprName() {
public String getExprName() {
if (!this.exprName.isPresent()) {
this.exprName = Optional.of(toColumnLabel());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void analyzeImpl(Analyzer analyzer) throws AnalysisException {
}

@Override
protected String getExprName() {
public String getExprName() {
return super.getExprName();
}
}

0 comments on commit 6729084

Please sign in to comment.