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

Remove Type from NativeIndex #4146

Merged
merged 2 commits into from
Apr 28, 2023
Merged

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

Follow up to #3578 that switches FIXED_LEN_BYTE_ARRAY to use FixedLenByteArray which in turn allows removing Type from NativeIndex

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the parquet Changes to the parquet crate label Apr 27, 2023
@tustvold tustvold force-pushed the remove-type-native-index branch from 32bb94f to d0947c2 Compare April 27, 2023 16:42
@tustvold tustvold added the api-change Changes to the arrow API label Apr 27, 2023
@@ -118,11 +116,10 @@ pub struct NativeIndex<T: ParquetValueType> {
}

impl<T: ParquetValueType> NativeIndex<T> {
pub const PHYSICAL_TYPE: Type = T::PHYSICAL_TYPE;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is necessary because ParquetValueType is technically an experimental API

@@ -106,8 +106,6 @@ impl Index {
/// Stores the [`PageIndex`] for each page of a column with [`Type`]
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to update the doc for the [Type]?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What did you have in mind?

Copy link
Member

Choose a reason for hiding this comment

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

I meant do we need to remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@tustvold tustvold merged commit 5e5561e into apache:master Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants