Skip to content

Conversation

@tustvold
Copy link
Contributor

Which issue does this PR close?

Closes #1132.

Rationale for this change

See ticket

What changes are included in this PR?

This restricts RecordReader and friends to only permit legal types

Are there any user-facing changes?

No

@github-actions github-actions bot added the parquet Changes to the parquet crate label Jan 11, 2022
///
/// [scalar]: https://doc.rust-lang.org/book/ch03-02-data-types.html#scalar-types
///
pub trait ScalarDataType: DataType {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also considered PrimitiveDataType or PlainOldDataType but thought this was less overloaded, and corresponds to the Rust nomenclature

@tustvold tustvold changed the title Restrict RecordReader and friends to POD types (#1132) Restrict RecordReader and friends to scalar types (#1132) Jan 11, 2022
@tustvold tustvold force-pushed the restrict-array-reader branch from ca6d938 to 6529ee9 Compare January 11, 2022 12:33
@alamb alamb added the api-change Changes to the arrow API label Jan 11, 2022
@alamb
Copy link
Contributor

alamb commented Jan 11, 2022

Looks like a good change to me.

FYI @yordan-pavlov

@alamb alamb merged commit f6d8db8 into apache:master Jan 11, 2022
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.

RecordReader Permits Illegal Types

2 participants