You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@parquet.apache.org by "iemejia (via GitHub)" <gi...@apache.org> on 2026/06/02 18:32:53 UTC
[PR] Fix typos, grammar, and consistency in Encryption, Contributing, and BinaryProtocolExtensions docs [parquet-format]
iemejia opened a new pull request, #578:
URL: https://github.com/apache/parquet-format/pull/578
## Summary
Fix typos, grammar, and formatting across ancillary specification documents: Encryption, Contributing guide, and Binary Protocol Extensions.
## Changes
### Encryption.md
- Fix double-negative; align GCM invocation limit to NIST
- "Data PageHeader" -> "Data Page Header" (spacing consistency)
- Replace "allows to" with idiomatic English
- Fix smart quotes to ASCII for magic-bytes literal
- Remove double spaces; fix "the the FileMetaData"
- "explictly" -> "explicitly"
- Hyphenate compound adjectives ("2 byte short" -> "2-byte short")
- Fix section heading numbering ("## 5 File Format" -> "## 5. File Format")
- Fix mass noun article ("from a secret data" -> "from secret data")
### CONTRIBUTING.md
- Fix 7 typos: docuemnt, demostrate, interopability, libaries, highlighed, compatiblity, an prototype
- Fix possessive: "features desirability" -> "a feature's desirability"
- Fix agreement: "an external dependencies" -> "an external dependency"
- Add commas after introductory clauses
- Fix comma splice -> semicolon
### BinaryProtocolExtensions.md
- Fix "FileMetadata" -> "FileMetaData" (4 occurrences; match thrift struct)
- Fix "Flatbuffers"/"flatbuffer" -> "FlatBuffers" (5 occurrences; official capitalization)
- Fix "implementers which" -> "implementers who" (people)
- Fix missing copula: "extension shared" -> "extension is shared"
## Validation
No semantic/behavioral changes to the format specification. All fixes are documentation-only.
_Split from #572 for easier review._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] Fix typos, grammar, and consistency in Encryption, Contributing, and BinaryProtocolExtensions docs [parquet-format]
Posted by "etseidl (via GitHub)" <gi...@apache.org>.
etseidl commented on code in PR #578:
URL: https://github.com/apache/parquet-format/pull/578#discussion_r3344520269
##########
BinaryProtocolExtensions.md:
##########
@@ -26,11 +26,11 @@ The extension mechanism of the `binary` Thrift field-id `32767` has some desirab
* The content of the extension is freeform and can be encoded in any format. This format is not restricted to Thrift.
* Extensions can be appended to existing Thrift serialized structs [without requiring Thrift libraries](#appending-extensions-to-thrift) for manipulation (or changes to the thrift IDL).
-Because only one field-id is reserved the extension bytes themselves require disambiguation; otherwise readers will not be able to decode extensions safely. This is left to implementers which MUST put enough unique state in their extension bytes for disambiguation. This can be relatively easily achieved by adding a [UUID](https://en.wikipedia.org/wiki/Universally\_unique\_identifier) at the start or end of the extension bytes. The extension does not specify a disambiguation mechanism to allow more flexibility to implementers.
+Because only one field-id is reserved the extension bytes themselves require disambiguation; otherwise readers will not be able to decode extensions safely. This is left to implementers who MUST put enough unique state in their extension bytes for disambiguation. This can be relatively easily achieved by adding a [UUID](https://en.wikipedia.org/wiki/Universally\_unique\_identifier) at the start or end of the extension bytes. The extension does not specify a disambiguation mechanism to allow more flexibility to implementers.
Review Comment:
Gads this could use some line breaks 😅
##########
CONTRIBUTING.md:
##########
@@ -73,35 +73,35 @@ The general steps for adding features to the format are as follows:
fit for inclusion (for example, they were submitted as a pull request against
the target repository and committers gave positive reviews). Reports on the
benefits from closed source implementations are welcome and can help lend
- weight to features desirability but are not sufficient for acceptance of a
+ weight to a feature's desirability but are not sufficient for acceptance of a
new feature.
Unless otherwise discussed, it is expected the implementations will be developed
from their respective main branch (i.e. backporting is not required), to
demonstrate that the feature is mergeable to its implementation.
-3. Ratification: After the first two steps are complete a formal vote is held on
+3. Ratification: After the first two steps are complete, a formal vote is held on
dev@parquet.apache.org to officially ratify the feature. After the vote
- passes the format change is merged into the `parquet-format` repository and
+ passes, the format change is merged into the `parquet-format` repository and
it is expected the changes from step 2 will also be merged soon after
(implementations should not be merged until the addition has been merged to
`parquet-format`).
-#### General guidelines/preferences on additions.
+#### General guidelines/preferences on additions
1. To the greatest extent possible changes should have an option for forward
compatibility (old readers can still read files). The [compatibility and
feature enablement](#compatibility-and-feature-enablement) section below
provides more details on expectations for changes that break compatibility.
2. New encodings should be fully specified in this repository and not
- rely on an external dependencies for implementation (i.e. `parquet-format` is
+ rely on an external dependency for implementation (i.e. `parquet-format` is
Review Comment:
```suggestion
rely on external dependencies for implementation (i.e. `parquet-format` is
```
##########
Encryption.md:
##########
@@ -136,9 +136,9 @@ one IV is ever repeated, then the implementation may be vulnerable"*. *"Complian
requirement is crucial to the security of GCM"*.
The bulk of modules in a Parquet file are page headers and data pages. Therefore, one encryption
-key shall not not be used for more than 2^31 (~2 billion) pages. In Parquet files encrypted with
-multiple keys (footer and column keys), the constraint on the number of invocations is applied
-to each key separately.
+key shall not be used for more than 2^32 total module encryptions, as per the NIST specification.
Review Comment:
Perhaps we should still point out that 2^32 modules means in practice 2^31 pages.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] Fix typos, grammar, and consistency in Encryption, Contributing, and BinaryProtocolExtensions docs [parquet-format]
Posted by "etseidl (via GitHub)" <gi...@apache.org>.
etseidl commented on code in PR #578:
URL: https://github.com/apache/parquet-format/pull/578#discussion_r3373914169
##########
BinaryProtocolExtensions.md:
##########
@@ -26,11 +26,17 @@ The extension mechanism of the `binary` Thrift field-id `32767` has some desirab
* The content of the extension is freeform and can be encoded in any format. This format is not restricted to Thrift.
* Extensions can be appended to existing Thrift serialized structs [without requiring Thrift libraries](#appending-extensions-to-thrift) for manipulation (or changes to the thrift IDL).
-Because only one field-id is reserved the extension bytes themselves require disambiguation; otherwise readers will not be able to decode extensions safely. This is left to implementers which MUST put enough unique state in their extension bytes for disambiguation. This can be relatively easily achieved by adding a [UUID](https://en.wikipedia.org/wiki/Universally\_unique\_identifier) at the start or end of the extension bytes. The extension does not specify a disambiguation mechanism to allow more flexibility to implementers.
+Because only one field-id is reserved the extension bytes themselves require
Review Comment:
I think we should strive to reduce lines this long. A single word change in such a wrapped section of text makes for a difficult to see delta.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] Fix typos, grammar, and consistency in Encryption, Contributing, and BinaryProtocolExtensions docs [parquet-format]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on code in PR #578:
URL: https://github.com/apache/parquet-format/pull/578#discussion_r3374330423
##########
BinaryProtocolExtensions.md:
##########
@@ -26,11 +26,17 @@ The extension mechanism of the `binary` Thrift field-id `32767` has some desirab
* The content of the extension is freeform and can be encoded in any format. This format is not restricted to Thrift.
* Extensions can be appended to existing Thrift serialized structs [without requiring Thrift libraries](#appending-extensions-to-thrift) for manipulation (or changes to the thrift IDL).
-Because only one field-id is reserved the extension bytes themselves require disambiguation; otherwise readers will not be able to decode extensions safely. This is left to implementers which MUST put enough unique state in their extension bytes for disambiguation. This can be relatively easily achieved by adding a [UUID](https://en.wikipedia.org/wiki/Universally\_unique\_identifier) at the start or end of the extension bytes. The extension does not specify a disambiguation mechanism to allow more flexibility to implementers.
+Because only one field-id is reserved the extension bytes themselves require
Review Comment:
Sounds good!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] Fix typos, grammar, and consistency in Encryption, Contributing, and BinaryProtocolExtensions docs [parquet-format]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on code in PR #578:
URL: https://github.com/apache/parquet-format/pull/578#discussion_r3373792323
##########
BinaryProtocolExtensions.md:
##########
@@ -26,11 +26,17 @@ The extension mechanism of the `binary` Thrift field-id `32767` has some desirab
* The content of the extension is freeform and can be encoded in any format. This format is not restricted to Thrift.
* Extensions can be appended to existing Thrift serialized structs [without requiring Thrift libraries](#appending-extensions-to-thrift) for manipulation (or changes to the thrift IDL).
-Because only one field-id is reserved the extension bytes themselves require disambiguation; otherwise readers will not be able to decode extensions safely. This is left to implementers which MUST put enough unique state in their extension bytes for disambiguation. This can be relatively easily achieved by adding a [UUID](https://en.wikipedia.org/wiki/Universally\_unique\_identifier) at the start or end of the extension bytes. The extension does not specify a disambiguation mechanism to allow more flexibility to implementers.
+Because only one field-id is reserved the extension bytes themselves require
Review Comment:
Should we revert this change? Other lines do not seem to wrap lines like this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] Fix typos, grammar, and consistency in Encryption, Contributing, and BinaryProtocolExtensions docs [parquet-format]
Posted by "iemejia (via GitHub)" <gi...@apache.org>.
iemejia commented on code in PR #578:
URL: https://github.com/apache/parquet-format/pull/578#discussion_r3345418382
##########
BinaryProtocolExtensions.md:
##########
@@ -26,11 +26,11 @@ The extension mechanism of the `binary` Thrift field-id `32767` has some desirab
* The content of the extension is freeform and can be encoded in any format. This format is not restricted to Thrift.
* Extensions can be appended to existing Thrift serialized structs [without requiring Thrift libraries](#appending-extensions-to-thrift) for manipulation (or changes to the thrift IDL).
-Because only one field-id is reserved the extension bytes themselves require disambiguation; otherwise readers will not be able to decode extensions safely. This is left to implementers which MUST put enough unique state in their extension bytes for disambiguation. This can be relatively easily achieved by adding a [UUID](https://en.wikipedia.org/wiki/Universally\_unique\_identifier) at the start or end of the extension bytes. The extension does not specify a disambiguation mechanism to allow more flexibility to implementers.
+Because only one field-id is reserved the extension bytes themselves require disambiguation; otherwise readers will not be able to decode extensions safely. This is left to implementers who MUST put enough unique state in their extension bytes for disambiguation. This can be relatively easily achieved by adding a [UUID](https://en.wikipedia.org/wiki/Universally\_unique\_identifier) at the start or end of the extension bytes. The extension does not specify a disambiguation mechanism to allow more flexibility to implementers.
Review Comment:
Done, broke the paragraph into shorter lines.
##########
Encryption.md:
##########
@@ -136,9 +136,9 @@ one IV is ever repeated, then the implementation may be vulnerable"*. *"Complian
requirement is crucial to the security of GCM"*.
The bulk of modules in a Parquet file are page headers and data pages. Therefore, one encryption
-key shall not not be used for more than 2^31 (~2 billion) pages. In Parquet files encrypted with
-multiple keys (footer and column keys), the constraint on the number of invocations is applied
-to each key separately.
+key shall not be used for more than 2^32 total module encryptions, as per the NIST specification.
Review Comment:
Good point. Added a sentence clarifying that since each data page requires two module encryptions (header + data), 2^32 modules means in practice no more than 2^31 pages per key.
##########
CONTRIBUTING.md:
##########
@@ -73,35 +73,35 @@ The general steps for adding features to the format are as follows:
fit for inclusion (for example, they were submitted as a pull request against
the target repository and committers gave positive reviews). Reports on the
benefits from closed source implementations are welcome and can help lend
- weight to features desirability but are not sufficient for acceptance of a
+ weight to a feature's desirability but are not sufficient for acceptance of a
new feature.
Unless otherwise discussed, it is expected the implementations will be developed
from their respective main branch (i.e. backporting is not required), to
demonstrate that the feature is mergeable to its implementation.
-3. Ratification: After the first two steps are complete a formal vote is held on
+3. Ratification: After the first two steps are complete, a formal vote is held on
dev@parquet.apache.org to officially ratify the feature. After the vote
- passes the format change is merged into the `parquet-format` repository and
+ passes, the format change is merged into the `parquet-format` repository and
it is expected the changes from step 2 will also be merged soon after
(implementations should not be merged until the addition has been merged to
`parquet-format`).
-#### General guidelines/preferences on additions.
+#### General guidelines/preferences on additions
1. To the greatest extent possible changes should have an option for forward
compatibility (old readers can still read files). The [compatibility and
feature enablement](#compatibility-and-feature-enablement) section below
provides more details on expectations for changes that break compatibility.
2. New encodings should be fully specified in this repository and not
- rely on an external dependencies for implementation (i.e. `parquet-format` is
+ rely on an external dependency for implementation (i.e. `parquet-format` is
Review Comment:
Applied, thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [PR] Fix typos, grammar, and consistency in Encryption, Contributing, and BinaryProtocolExtensions docs [parquet-format]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac merged PR #578:
URL: https://github.com/apache/parquet-format/pull/578
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org