Repository navigation
MINOR: adding changes guidelines - #645
julienledem wants to merge 2 commits into
Conversation
Signed-off-by: Julien Le Dem <julien.ledem@datadoghq.com>
Signed-off-by: Julien Le Dem <julien.ledem@datadoghq.com>
alamb
left a comment
There was a problem hiding this comment.
Thank you @julienledem -- this looks like a nice step forward to me
As I think @emkornfield has mentioned before, we now have two sources of somewhat overlapping information (FormatChanges.md and the README) which would be nice to consolidate eventually
| See [Changing the Format](FormatChanges.md) for more details on the categories | ||
| of changes and the criteria used to evaluate them. | ||
|
|
||
| New features are intended to be widely beneficial to users of Parquet, and |
There was a problem hiding this comment.
Perhaps as a follow on PR we can consolidate this text with the text in FormatChanges.md
|
|
||
| ## Dealing with incompatible changes | ||
|
|
||
| ### Backward compatibility |
There was a problem hiding this comment.
Should we mention something about deprecation here? If we intend to drop a field, we should likely be deprecating it in the current version so readers/writers have time to change if needed and then dropping it in the next version.
| | **Correct Read** | Reads data correctly.<br>Sometimes ignores supplemental data structures it doesn't know about. | This is the most frequent case for forward compatibility. We add new features that do not prevent old readers from reading the data correctly even though they might not take advantage of those new features. | You can read the data correctly and not understand bloom filters or statistics. | **Forward compatible**: The format evolves seamlessly. | | ||
| | **Correct Partial Read** | Reads correctly a subset of the columns as long as the unsupported columns don't need to be accessed and correctly fails otherwise. | When a feature cannot be introduced without breaking forward compatibility (ex: new encoding), old readers are able to read files and columns that do not use that new feature and know they can not read the ones that do and why. | [ALP Encoding](Encodings.md#ALP): Old readers can read all the columns that don't use this encoding that applies only to floating point columns. | **Forward incompatible but correct**: Old readers will explain failed reads and preserve correctness.<br>New writers can be configured to hold off on using new features until all readers support it. | | ||
| | **Correct Failure to Read** | Can't read data at all but understands why. | When a feature cannot be introduced without breaking file-level compatibility, old readers know they can not read the file. | Changing the footer format. The reader has no granular information and fails on the magic number change. | Same as Correct Partial Read: **Forward incompatible but correct**. | | ||
| | **Best Effort Read** | Reads the subset of data it understands and ignores the rest. | Similar to Correct Partial Reads. In cases where this does not lead to data loss, readers can elect to read only the subset of the file they can read correctly. This is different from a correct partial read as a "select \*" would return only the columns it understands instead of failing for not reading a subset of the columns. | "Select \*" ignoring columns encoded in ALP and returning the subset of the file that is readable. | **Forward incompatible best effort**: Old readers can elect to read in best effort the subset of the data. Not reading incorrect data but would lead to dropping data if the output was saved without understanding the difference with "correct partial read". | |
There was a problem hiding this comment.
I'm still a little bit confused with the difference between Correct Partial Read and Best Effort Read. Does readers need to explicitly tell users what unsupported data are ignored? Otherwise it looks like data loss to me.
There was a problem hiding this comment.
+1, I left a comment to this effect in the linked document as well. I'm not seeing a case where a best effort read is actually preferable if it can silently drop data.
Rationale for this change
I created a page reflecting the content of the guidelines we have been discussing.
https://docs.google.com/document/d/19bOTy1WcLs9NP88DrysG4wG50pM6gmIFaSEWzkxUeJw/edit?tab=t.8veepidgez8a#heading=h.lkllwrkuv6vx
I initially opened it on parquet-site but moving it here, and now parquet-site renders content from this page
What changes are included in this PR?
This adds a page to the documentation
Do these changes have PoC implementations?
This is documentation.