You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by dz...@apache.org on 2023/03/10 05:55:07 UTC
[drill] branch calcite-1.34-test updated (27e81ca045 -> 53a4cdaa82)
This is an automated email from the ASF dual-hosted git repository.
dzamo pushed a change to branch calcite-1.34-test
in repository https://gitbox.apache.org/repos/asf/drill.git
discard 27e81ca045 Add a new compound identifier rewrite rule for the QUALIFY clause.
discard a002a22919 Test Calcite 1.34.0-SNAPSHOT.
new c14148e0e0 Test Calcite 1.34 snapshot.
new 53a4cdaa82 Support the QUALIFY clause introduced in Calcite 1.34.
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (27e81ca045)
\
N -- N -- N refs/heads/calcite-1.34-test (53a4cdaa82)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../java/org/apache/drill/exec/planner/sql/SqlSelectBuilder.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
[drill] 01/02: Test Calcite 1.34 snapshot.
Posted by dz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dzamo pushed a commit to branch calcite-1.34-test
in repository https://gitbox.apache.org/repos/asf/drill.git
commit c14148e0e0f91ff12cc2047f80723642744a7811
Author: James Turton <ja...@somecomputer.xyz>
AuthorDate: Thu Mar 9 14:15:58 2023 +0200
Test Calcite 1.34 snapshot.
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c9d852dcbf..7fb9c588f1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
<parquet.version>1.12.2</parquet.version>
<parquet.format.version>2.8.0</parquet.format.version>
<calcite.groupId>org.apache.calcite</calcite.groupId>
- <calcite.version>1.33.0</calcite.version>
+ <calcite.version>1.34.0-SNAPSHOT</calcite.version>
<avatica.version>1.23.0</avatica.version>
<janino.version>3.1.8</janino.version>
<sqlline.version>1.12.0</sqlline.version>
[drill] 02/02: Support the QUALIFY clause introduced in Calcite 1.34.
Posted by dz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dzamo pushed a commit to branch calcite-1.34-test
in repository https://gitbox.apache.org/repos/asf/drill.git
commit 53a4cdaa82b9434cd953e7c9b8ef237d571a0339
Author: James Turton <ja...@somecomputer.xyz>
AuthorDate: Thu Mar 9 14:16:36 2023 +0200
Support the QUALIFY clause introduced in Calcite 1.34.
---
.../java/org/apache/drill/exec/planner/sql/SqlSelectBuilder.java | 8 +++++++-
.../exec/planner/sql/parser/CompoundIdentifierConverter.java | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlSelectBuilder.java b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlSelectBuilder.java
index a6653900f9..07dcf01280 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlSelectBuilder.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlSelectBuilder.java
@@ -31,6 +31,7 @@ public class SqlSelectBuilder {
private SqlNodeList groupBy;
private SqlNode having;
private SqlNodeList windowDecls;
+ private SqlNode qualify;
private SqlNodeList orderBy;
private SqlNode offset;
private SqlNode fetch;
@@ -76,6 +77,11 @@ public class SqlSelectBuilder {
return this;
}
+ public SqlSelectBuilder qualify(SqlNode qualify) {
+ this.qualify = qualify;
+ return this;
+ }
+
public SqlSelectBuilder orderBy(SqlNodeList orderBy) {
this.orderBy = orderBy;
return this;
@@ -98,7 +104,7 @@ public class SqlSelectBuilder {
public SqlSelect build() {
return new SqlSelect(parserPosition, keywordList, selectList, from,
- where, groupBy, having, windowDecls, orderBy, offset, fetch, hints);
+ where, groupBy, having, windowDecls, qualify, orderBy, offset, fetch, hints);
}
}
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/parser/CompoundIdentifierConverter.java b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/parser/CompoundIdentifierConverter.java
index 6aca6ba847..2d006d38c9 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/parser/CompoundIdentifierConverter.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/parser/CompoundIdentifierConverter.java
@@ -66,7 +66,7 @@ public class CompoundIdentifierConverter extends SqlShuttle {
.put(SqlAnalyzeTable.class, arrayOf(D, D, E, D))
.put(SqlMetastoreAnalyzeTable.class, arrayOf(D, E, D, D, D))
.put(SqlDropTableMetadata.class, arrayOf(D, D, D))
- .put(SqlSelect.class, arrayOf(D, E, D, E, E, E, E, E, D, D, D))
+ .put(SqlSelect.class, arrayOf(D, E, D, E, E, E, E, E, E, D, D, D))
.put(SqlCreateTable.class, arrayOf(D, D, D, E, D, D))
.put(SqlCreateView.class, arrayOf(D, E, E, D))
.put(DrillSqlDescribeTable.class, arrayOf(D, D, E))