-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Liquid Clustering and CLUSTER BY clause
- Loading branch information
1 parent
b361d20
commit 2cc7ee5
Showing
5 changed files
with
113 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# ClusterByParserUtils | ||
|
||
`ClusterByParserUtils` is...FIXME |
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,31 @@ | ||
--- | ||
title: ClusterByPlan | ||
--- | ||
|
||
# ClusterByPlan Leaf Logical Operator | ||
|
||
`ClusterByPlan` is a `LeafNode` ([Spark SQL]({{ book.spark_sql }}/logical-operators/LeafNode)). | ||
|
||
`ClusterByPlan` is used to create a [ClusterByParserUtils](ClusterByParserUtils.md). | ||
|
||
!!! note "To be removed" | ||
[They say the following]({{ delta.github }}/spark/src/main/scala/org/apache/spark/sql/delta/skipping/clustering/temp/ClusterBySpec.scala#L74-L75): | ||
|
||
> This class will be removed when we integrate with OSS Spark's CLUSTER BY implementation. | ||
> | ||
> See https://github.com/apache/spark/pull/42577 | ||
|
||
## Creating Instance | ||
|
||
`ClusterByPlan` takes the following to be created: | ||
|
||
* <span id="clusterBySpec"> [ClusterBySpec](ClusterBySpec.md) | ||
* <span id="startIndex"> Start Index | ||
* <span id="stopIndex"> Stop Index | ||
* <span id="parenStartIndex"> `parenStartIndex` | ||
* <span id="parenStopIndex"> `parenStopIndex` | ||
* <span id="ctx"> Antlr's `ParserRuleContext` | ||
|
||
`ClusterByPlan` is created when: | ||
|
||
* `DeltaSqlAstBuilder` is requested to [parse CLUSTER BY clause](../sql/DeltaSqlAstBuilder.md#visitClusterBy) |
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