Skip to content

Conversation

@ajantha-bhat
Copy link
Member

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

Depends on #12450 (Hence kept in Draft).

Fixes: #10106

CALL catalog_name.system.compute_partition_stats('db.sample');

And observe the stats files registered to table

table.partitionStatisticsFiles()

@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)

@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Apr 26, 2025
@ajantha-bhat
Copy link
Member Author

Not stale

@github-actions github-actions bot removed the stale label Apr 29, 2025
@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 15, 2025
@github-actions
Copy link

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions bot closed this Jun 23, 2025
@ajantha-bhat
Copy link
Member Author

the branch was force pushed when this PR was closed as stale. So, Can't reopen this now.

Continued on: #13480

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