stefan-grafberger commented on code in PR #635:
URL: https://github.com/apache/parquet-format/pull/635#discussion_r4456513313


##########
LogicalTypes.md:
##########
@@ -712,8 +713,9 @@ If set and non-zero, readers must seek to this offset to 
retrieve the referenced
 
 The byte length of the referenced data. Must be zero or a positive integer if 
set; a
 value of 0 indicates empty referenced data. `size` must be set whenever 
`offset` is set.
-It may be omitted only for a whole-file external reference (`uri` set, 
`offset` not set),
-in which case the range runs to the end of the referenced file.
+It may be omitted for a whole-file external reference (`uri` set, `offset` not 
set),
+in which case the range runs to the end of the referenced file. `size` may 
also be set
+with `inline` and without `uri`, in which case it must equal the length of 
`inline`.

Review Comment:
   Good question! The PR would only allow writing size next to inline; it stays 
optional. Writing it helps any query that needs the size of a FILE value, since 
readers can read a small numeric column instead of the inline bytes, which can 
be many MB each. It also gives a single size column with min/max statistics for 
pruning, even in FILE columns that mix inline and external values.



-- 
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