rok commented on code in PR #624:
URL: https://github.com/apache/parquet-format/pull/624#discussion_r4471601414


##########
LogicalTypes.md:
##########
@@ -1097,6 +1097,75 @@ optional group my_map (MAP_KEY_VALUE) {
 }
 ```
 
+### Finite Vectors
+
+`FINITE_VECTOR` is used to annotate fixed-length ordered sequences of finite 
and
+non-null elements.
+
+`FiniteVectorType` annotation has one required parameter, `num_elements`,
+which is the number of elements in each non-null vector and MUST be greater
+than zero.
+
+`FINITE_VECTOR` MUST always annotate the canonical 3-level structure:
+
+```
+<vector-repetition> group <name> (FINITE_VECTOR(<num_elements>)) {
+  repeated group list {
+    required <element-type> element;
+  }
+}
+```
+
+* The outer level must be a group annotated with `FINITE_VECTOR`. Its
+  repetition must be either `optional` or `required` and determines whether
+  the vector may be null. It must contain a single field named `list`.
+* The middle level must be a repeated group named `list` with a single field
+  named `element`.
+* The element MUST be a `required` primitive field, individual elements MUST
+  NOT be null.
+

Review Comment:
   ```suggestion
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to