-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
786cefd
commit cfc1ac5
Showing
15 changed files
with
900 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
core/src/main/java/com/alibaba/druid/sql/dialect/impala/ast/ImpalaSQLPartitionValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.alibaba.druid.sql.dialect.impala.ast; | ||
|
||
import com.alibaba.druid.sql.ast.SQLPartitionValue; | ||
|
||
public class ImpalaSQLPartitionValue extends SQLPartitionValue { | ||
private Integer leftBound; | ||
private Integer rightBound; | ||
private Operator leftOperator; | ||
private Operator rightOperator; | ||
|
||
public void setOperator(Operator operator) { | ||
this.operator = operator; | ||
} | ||
|
||
public Integer getLeftBound() { | ||
return leftBound; | ||
} | ||
|
||
public void setLeftBound(Integer leftBound) { | ||
this.leftBound = leftBound; | ||
} | ||
|
||
public Integer getRightBound() { | ||
return rightBound; | ||
} | ||
|
||
public void setRightBound(Integer rightBound) { | ||
this.rightBound = rightBound; | ||
} | ||
|
||
public String constructPartitionName() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("partition_").append(leftBound != null ? leftBound.toString() : "") | ||
.append("_").append(rightBound != null ? rightBound.toString() : ""); | ||
return sb.toString(); | ||
} | ||
|
||
public Operator getLeftOperator() { | ||
return leftOperator; | ||
} | ||
|
||
public void setLeftOperator(Operator leftOperator) { | ||
this.leftOperator = leftOperator; | ||
} | ||
|
||
public Operator getRightOperator() { | ||
return rightOperator; | ||
} | ||
|
||
public void setRightOperator(Operator rightOperator) { | ||
this.rightOperator = rightOperator; | ||
} | ||
} |
Oops, something went wrong.