Skip to content

Conversation

@jayzhan211
Copy link
Contributor

@jayzhan211 jayzhan211 commented Mar 6, 2024

Which issue does this PR close?

Closes #9450.

There might be others MemExec::try_new that need to be replaced with try_new_show_sizes, but I only changed the necessary one to fix the limit.slt for now.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Signed-off-by: jayzhan211 <[email protected]>
@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Mar 6, 2024
@jayzhan211 jayzhan211 changed the title quick fixes Enable configure showing partition sizes in explain Mar 6, 2024
@jayzhan211 jayzhan211 changed the title Enable configure showing partition sizes in explain Enable configurable showing partition sizes in explain Mar 6, 2024
Self::try_new_with_show_sizes(partitions, schema, projection, true)
}

pub fn try_new_with_show_sizes(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

create a new function to avoid changing too many existing try new functions

Copy link
Contributor

Choose a reason for hiding this comment

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

I think, instead of this API. You can use builder API such as below

pub fn with_show_sizes(mut self, show_sizes: bool) -> Self{
    self.show_sizes = show_sizes;
}

However, this is purely stylistic. Feel free to proceed as you wish.

Signed-off-by: jayzhan211 <[email protected]>
Signed-off-by: jayzhan211 <[email protected]>
Signed-off-by: jayzhan211 <[email protected]>
Signed-off-by: jayzhan211 <[email protected]>
@jayzhan211 jayzhan211 marked this pull request as ready for review March 6, 2024 11:38
@jayzhan211 jayzhan211 changed the title Enable configurable showing partition sizes in explain [CI fMain] Enable configurable display of partition sizes in the explain statement Mar 6, 2024
@jayzhan211 jayzhan211 changed the title [CI fMain] Enable configurable display of partition sizes in the explain statement Enable configurable display of partition sizes in the explain statement Mar 6, 2024
Copy link
Contributor

@mustafasrepo mustafasrepo left a comment

Choose a reason for hiding this comment

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

Left some minor comment. Other than this, this PR is LGTM!. Thanks @jayzhan211

Signed-off-by: jayzhan211 <[email protected]>
@alamb
Copy link
Contributor

alamb commented Mar 6, 2024

Thank you so much @jayzhan211 and @mustafasrepo

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

Labels

core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intermittent limit.slt failure

3 participants