zhztheplayer commented on a change in pull request #1052: CALCITE-2833- Select
without from support & CALCITE-2834-Support for values clause for dialects
which neither have values clause nor dual table
URL: https://github.com/apache/calcite/pull/1052#discussion_r258565833
##########
File path:
core/src/main/java/org/apache/calcite/sql/dialect/BigQuerySqlDialect.java
##########
@@ -58,16 +62,22 @@ public BigQuerySqlDialect(SqlDialect.Context context) {
case UNION:
if (!((SqlSetOperator) call.getOperator()).isAll()) {
SqlSyntax.BINARY.unparse(writer, UNION_DISTINCT, call, leftPrec,
rightPrec);
+ } else {
+ super.unparseCall(writer, call, leftPrec, rightPrec);
}
break;
case EXCEPT:
if (!((SqlSetOperator) call.getOperator()).isAll()) {
SqlSyntax.BINARY.unparse(writer, EXCEPT_DISTINCT, call, leftPrec,
rightPrec);
+ } else {
+ super.unparseCall(writer, call, leftPrec, rightPrec);
}
break;
case INTERSECT:
if (!((SqlSetOperator) call.getOperator()).isAll()) {
SqlSyntax.BINARY.unparse(writer, INTERSECT_DISTINCT, call, leftPrec,
rightPrec);
+ } else {
+ super.unparseCall(writer, call, leftPrec, rightPrec);
Review comment:
The same.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services