-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-11992: [Rust][Parquet] Add upgrade notes on 4.0 rename of LogicalType #9731
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,6 +59,8 @@ pub enum Type { | |
| /// Common types (converted types) used by frameworks when using Parquet. | ||
| /// This helps map between types in those frameworks to the base types in Parquet. | ||
| /// This is only metadata and not needed to read or write the data. | ||
| /// | ||
| /// *Upgrade Note*: This struct was renamed from `LogicalType` in version 4.0.0. | ||
| #[derive(Debug, Clone, Copy, PartialEq)] | ||
| pub enum ConvertedType { | ||
| NONE, | ||
|
|
@@ -156,6 +158,10 @@ pub enum ConvertedType { | |
| // Mirrors `parquet::LogicalType` | ||
|
|
||
| /// Logical types used by version 2 of the Parquet format. | ||
| /// | ||
| /// *Upgrade Note*: This is an *entirely new* struct as of version | ||
|
||
| /// 4.0.0. The struct previously named `LogicalType` was renamed to | ||
| /// [`ConvertedType`]. Please see the README.md for more details. | ||
| #[derive(Debug, Clone, PartialEq)] | ||
| pub enum LogicalType { | ||
| STRING(StringType), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine to add this temporarily in README.md but I think we should put them this alongside other breaking changes from 4.0 (seems there're quite a few of them) in a separate doc eventually. Something similar from Apache Spark.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summarizing breaking changes would definitely be valuable. I don't think I have the time to do so at this moment, but I am very supportive of the idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add a guide as part of https://issues.apache.org/jira/browse/ARROW-12019, to provide examples of how one can start using
LogicalType.