Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshSingla committed Jan 10, 2024
1 parent 8992555 commit 360bde0
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ public QueryDefinition makeQueryDefinition(
.processorFactory(new GroupByPreShuffleFrameProcessorFactory(queryToRun))
);

ClusterBy resultClusterBy = computeResultClusterByWithPartitionBoost(
ClusterBy resultClusterBy = computeResultClusterBy(
queryToRun,
segmentGranularity,
partitionBoost
);
RowSignature resultSignature = computeResultSignatureWithPartitionBoost(
RowSignature resultSignature = computeResultSignature(
queryToRun,
segmentGranularity,
resultClusterBy,
Expand Down Expand Up @@ -230,9 +230,10 @@ private static RowSignature computeResultSignature(final GroupByQuery query)
}

/**
* Computes the result clusterBy which may or may not have the partition boosted column
* Computes the result clusterBy which may or may not have the partition boosted column, depending on the
* {@code partitionBoost} parameter passed
*/
private static ClusterBy computeResultClusterByWithPartitionBoost(
private static ClusterBy computeResultClusterBy(
final GroupByQuery query,
final Granularity segmentGranularity,
final boolean partitionBoost
Expand All @@ -256,10 +257,11 @@ private static ClusterBy computeResultClusterByWithPartitionBoost(
}

/**
* Computes the result signature which may or may not have the partition boosted column. It expects that the clusterBy
* already has the partition boost column if the parameter 'partitionBoost' is set as true.
* Computes the result signature which may or may not have the partition boosted column depending on the
* {@code partitionBoost} passed. It expects that the clusterBy already has the partition boost column
* if the parameter {@code partitionBoost} is set as true.
*/
private static RowSignature computeResultSignatureWithPartitionBoost(
private static RowSignature computeResultSignature(
final GroupByQuery query,
final Granularity segmentGranularity,
final ClusterBy resultClusterBy,
Expand Down

0 comments on commit 360bde0

Please sign in to comment.