rdblue commented on code in PR #17159:
URL: https://github.com/apache/iceberg/pull/17159#discussion_r3589920515
##########
core/src/main/java/org/apache/iceberg/ContentStats.java:
##########
@@ -35,6 +35,12 @@ interface ContentStats extends StructLike {
*/
<T> FieldStats<T> statsFor(int fieldId);
- /** The stats struct holding nested structs with their respective field
stats */
- Types.StructType statsStruct();
+ /** Container struct type containing tracked field-level stats structs. */
+ Types.StructType type();
+
+ /** Returns a copy, deep-copying all field stats. */
+ ContentStats copy();
+
+ /** Returns a copy, of only the selected field stats by ID. */
+ ContentStats copy(Set<Integer> fieldIds);
Review Comment:
I don't think so. This is still copying stats, it is just choosing which
ones to copy. It is also intended to be consistent with `copyWithStats(...)` in
the DataFile API.
--
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]