rdblue commented on code in PR #15049:
URL: https://github.com/apache/iceberg/pull/15049#discussion_r3012101698


##########
core/src/main/java/org/apache/iceberg/DeletionVector.java:
##########
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.iceberg;
+
+import org.apache.iceberg.types.Types;
+
+/**
+ * Metadata about a deletion vector.
+ *
+ * <p>Tracks where a DV blob can be read. The DV blob follows the format 
defined by the
+ * deletion-vector-v1 blob type in the Puffin spec.
+ */
+interface DeletionVector {
+  Types.NestedField LOCATION =
+      Types.NestedField.required(
+          155, "location", Types.StringType.get(), "Location of the file 
containing the DV");
+  Types.NestedField OFFSET =

Review Comment:
   v3 and earlier are separate from the v4 read path. That is, we are not 
trying to have a reader that can use the v4 schema as a projection to read v3 
files.
   
   Because we can consider the v4 schema separate, we can decide how to assign 
IDs. The strategy that I've talked about with Anoop and Amogh is that we should 
reuse the IDs as much as possible when the field represents the same thing, 
even though the field may be in a different struct for v4. If you agree with 
that, then I think it is a good idea to use id=144 here since this is the same 
field: the offset within a file where the DV blob starts.



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