Skip to content

Conversation

@yjshen
Copy link
Member

@yjshen yjshen commented Apr 15, 2023

Which issue does this PR close?

Closes #6024.

Rationale for this change

While reviewing the latest code changes over aggregation, I found the original RowType::Compact row is no longer used as grouping key representation in AggregateExec; therefore remove it and re-document the row format in DataFusion a little bit.

What changes are included in this PR?

Remove the deprecated compact row layout as well as the related implementations.

Are these changes tested?

Existing tests.

Are there any user-facing changes?

Yes, the RowType enum is removed, with its usages removed from related row APIs. After this change, the only layout for RowLayout in DataFusion is the word-aligned layout.

@github-actions github-actions bot added the core Core DataFusion crate label Apr 15, 2023

impl<'a> RowAccessor<'a> {
/// new
pub fn new(schema: &Schema, row_type: RowType) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR. This is always great to cut out the unused code. For public functions though it can be a user interface change for downstream projects btw?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for bringing this out! I've created an issue, added an API change label, and edited the PR descriptions accordingly.

@yjshen yjshen changed the title minor: Remove compact row since it's no longer used feat: Remove compact row since it's no longer used Apr 16, 2023
@yjshen yjshen added the api change Changes the API exposed to users of the crate label Apr 16, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @yjshen ❤️

///
/// [Compact]: datafusion_row::layout::RowType::Compact
/// [WordAligned]: datafusion_row::layout::RowType::WordAligned
/// [Arrow-row]: OwnedRow
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@yjshen yjshen merged commit 463ec30 into apache:main Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api change Changes the API exposed to users of the crate core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated compact row format

3 participants