Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spark] Support OPTIMIZE tbl FULL for clustered table #3793

Merged
merged 10 commits into from
Oct 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test failures
  • Loading branch information
dabao521 committed Oct 23, 2024
commit 7e9a031099745a76926703d48cd2ce992f431737
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ case class ClusteringStrategy(
// Keep all files if isFull is set, otherwise skip files with different clusteringProviders
// or files clustered by a different set of clustering columns.
val (candidateFiles, skippedClusteredFiles) = files.iterator.map { f =>
val zCubeInfo = ZCubeInfo.getForFile(f)
clusteringStatsCollector.inputStats.updateStats(f)
f
}.partition { file =>
Expand All @@ -275,7 +274,6 @@ case class ClusteringStrategy(
val finalFiles = (smallZCubeFiles.map(_.addFile) ++ skippedClusteredFiles).toSeq
finalFiles.map { f =>
clusteringStatsCollector.outputStats.updateStats(f)
val zCubeInfo = ZCubeInfo.getForFile(f)
f
}
} else {
Expand Down
Loading