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-3.5: Add procedure to compute partition stats #12451

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ajantha-bhat
Copy link
Member

@ajantha-bhat ajantha-bhat commented Mar 4, 2025

Depends on #12450 (Hence kept in Draft).

Fixes: #10106

@github-actions github-actions bot added the API label Mar 4, 2025
@ajantha-bhat ajantha-bhat changed the title Procedure Spark-3.5: Add procedure to compute partition stats Mar 4, 2025
@ajantha-bhat ajantha-bhat marked this pull request as draft March 4, 2025 08:36
LOG.info("Computing partition stats for {} (branch {})", table.name(), branch);
PartitionStatisticsFile statisticsFile;
try {
statisticsFile = PartitionStatsHandler.computeAndWriteStatsFile(table, branch);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[doubt] wouldn't it be better if we do stats computation in executor, rather than just computing it in driver in a multi-threaded way ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We did benchmarks and it turns out local algorithm is more performant than distributed way.
#9437 (comment)

So, going with non-distributed way.

Copy link
Contributor

@singhpk234 singhpk234 Mar 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, thank you for sharing the benchmark, just for my understanding what was the machine configuration used for running the benchmark ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was JMH benchmarks on my machine (macbook m2 max), Anton also did similar test and commented on that PR.
#9437 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spark procedure to compute partition stats.
2 participants