-
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
Showing
18 changed files
with
432 additions
and
60 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
56 changes: 56 additions & 0 deletions
56
core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryModelExpr.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,56 @@ | ||
package com.alibaba.druid.sql.dialect.bigquery.ast; | ||
|
||
import com.alibaba.druid.sql.ast.SQLExpr; | ||
import com.alibaba.druid.sql.ast.SQLExprImpl; | ||
import com.alibaba.druid.sql.ast.SQLName; | ||
import com.alibaba.druid.sql.dialect.bigquery.visitor.BigQueryVisitor; | ||
import com.alibaba.druid.sql.visitor.SQLASTVisitor; | ||
|
||
public class BigQueryModelExpr extends SQLExprImpl implements BigQueryObject { | ||
private SQLName name; | ||
|
||
public SQLName getName() { | ||
return name; | ||
} | ||
|
||
public void setName(SQLName x) { | ||
if (x != null) { | ||
x.setParent(this); | ||
} | ||
this.name = x; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void accept0(SQLASTVisitor v) { | ||
if (v instanceof BigQueryVisitor) { | ||
accept0((BigQueryVisitor) v); | ||
} | ||
} | ||
|
||
@Override | ||
public void accept0(BigQueryVisitor v) { | ||
if (v.visit(this)) { | ||
acceptChild(v); | ||
} | ||
v.endVisit(this); | ||
} | ||
|
||
@Override | ||
public SQLExpr clone() { | ||
return null; | ||
} | ||
|
||
public void acceptChild(SQLASTVisitor v) { | ||
acceptChild(v, name); | ||
} | ||
} |
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
56 changes: 56 additions & 0 deletions
56
core/src/main/java/com/alibaba/druid/sql/dialect/bigquery/ast/BigQueryTableExpr.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,56 @@ | ||
package com.alibaba.druid.sql.dialect.bigquery.ast; | ||
|
||
import com.alibaba.druid.sql.ast.SQLExpr; | ||
import com.alibaba.druid.sql.ast.SQLExprImpl; | ||
import com.alibaba.druid.sql.ast.SQLName; | ||
import com.alibaba.druid.sql.dialect.bigquery.visitor.BigQueryVisitor; | ||
import com.alibaba.druid.sql.visitor.SQLASTVisitor; | ||
|
||
public class BigQueryTableExpr extends SQLExprImpl implements BigQueryObject { | ||
private SQLName name; | ||
|
||
public SQLName getName() { | ||
return name; | ||
} | ||
|
||
public void setName(SQLName x) { | ||
if (x != null) { | ||
x.setParent(this); | ||
} | ||
this.name = x; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void accept0(SQLASTVisitor v) { | ||
if (v instanceof BigQueryVisitor) { | ||
accept0((BigQueryVisitor) v); | ||
} | ||
} | ||
|
||
@Override | ||
public void accept0(BigQueryVisitor v) { | ||
if (v.visit(this)) { | ||
acceptChild(v); | ||
} | ||
v.endVisit(this); | ||
} | ||
|
||
@Override | ||
public SQLExpr clone() { | ||
return null; | ||
} | ||
|
||
public void acceptChild(SQLASTVisitor v) { | ||
acceptChild(v, name); | ||
} | ||
} |
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
Oops, something went wrong.