Fokko commented on issue #11968:
URL: https://github.com/apache/iceberg/issues/11968#issuecomment-2592233055
I was trying out the Nightly Snapshot for PyIceberg, and noticed that we
don't produce any deletion vectors (yet):
```
spark-sql (default)> CREATE OR REPLACE TABLE test_deletion_vectors (
> dt date,
> number integer,
> letter string
> )
> USING iceberg
> TBLPROPERTIES (
> 'write.delete.mode'='merge-on-read',
> 'write.update.mode'='merge-on-read',
> 'write.merge.mode'='merge-on-read',
> 'format-version'='3'
> );
Time taken: 0.112 seconds
spark-sql (default)>
> INSERT INTO test_deletion_vectors
> VALUES
> (CAST('2023-03-01' AS date), 1, 'a'),
> (CAST('2023-03-02' AS date), 2, 'b'),
> (CAST('2023-03-03' AS date), 3, 'c'),
> (CAST('2023-03-04' AS date), 4, 'd'),
> (CAST('2023-03-05' AS date), 5, 'e'),
> (CAST('2023-03-06' AS date), 6, 'f'),
> (CAST('2023-03-07' AS date), 7, 'g'),
> (CAST('2023-03-08' AS date), 8, 'h'),
> (CAST('2023-03-09' AS date), 9, 'i'),
> (CAST('2023-03-10' AS date), 10, 'j'),
> (CAST('2023-03-11' AS date), 11, 'k'),
> (CAST('2023-03-12' AS date), 12, 'l');
Time taken: 1.422 seconds
spark-sql (default)>
> DELETE FROM test_deletion_vectors WHERE number = 9;
```

It is a V3 table:
```
spark-sql (default)> DESCRIBE TABLE EXTENDED test_deletion_vectors;
dt date
number int
letter string
# Metadata Columns
_spec_id int
_partition struct<>
_file string
_pos bigint
_deleted boolean
# Detailed Table Information
Name rest.default.test_deletion_vectors
Type MANAGED
Location s3://warehouse/default/test_deletion_vectors
Provider iceberg
Owner root
Table Properties
[created-at=2025-01-15T10:13:15.609042430Z,current-snapshot-id=644093306277329092,format=iceberg/parquet,format-version=3,write.delete.mode=merge-on-read,write.merge.mode=merge-on-read,write.parquet.compression-codec=zstd,write.update.mode=merge-on-read]
Time taken: 0.037 seconds, Fetched 18 row(s)
```
--
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]