Skip to content

Remove redundant variable in TestDeltaLakeFileBasedTableStatisticsProvider #25853

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

Merged
merged 1 commit into from
May 26, 2025

Conversation

chenjian2664
Copy link
Contributor

Description

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label May 23, 2025
@github-actions github-actions bot added the delta-lake Delta Lake connector label May 23, 2025
@@ -469,8 +469,7 @@ private TableStatistics getTableStatistics(ConnectorSession session, DeltaLakeTa
catch (IOException e) {
throw new RuntimeException(e);
}
TableStatistics tableStatistics = tableStatisticsProvider.getTableStatistics(session, tableHandle, tableSnapshot);
return tableStatistics;
return tableStatisticsProvider.getTableStatistics(session, tableHandle, tableSnapshot);
Copy link
Member

@ebyhr ebyhr May 23, 2025

Choose a reason for hiding this comment

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

A redundant variable is sometimes helpful during debugging.
I'm okay with this change since most callers use a local variable, though.

@ebyhr ebyhr merged commit 62de2fb into trinodb:master May 26, 2025
22 checks passed
@github-actions github-actions bot added this to the 476 milestone May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed delta-lake Delta Lake connector
Development

Successfully merging this pull request may close these issues.

2 participants