You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened: When creating checkpoints for a table that has delta.minReaderVersion < 3, protocol.readerFeatures key (with empty array value) is created in the beginning of the checkpoint parquet file.
Example:
This causes certain query engines (in this case, Trino) fail with readerFeatures must not exist when minReaderVersion is less than 3.
Example:
select count(*) from test_fua_delta_lake_uncompacted_4;
Query 20240329_000911_00000_q83vs failed: readerFeatures must not exist when minReaderVersion is less than 3
Since readerFeatures require minReaderVersion 3 and writerFeatures require minWriterVersion 7, these two keys (protocol.readerFeatures and protocol.writerFeatures) should not be added when delta.minReaderVersion < 3 and delta.minWriterVersion < 7, respectively.
What you expected to happen: protocol.readerFeatures and protocol.writerFeatures should not be added to the top of the checkpoint parquet files when delta.minReaderVersion < 3 and delta.minWriterVersion < 7, respectively.
How to reproduce it: Create a table in Trino and then commit & create checkpoint from delta-rs to that table. Then do a SELECT COUNT(*) query against the table in Trino.
More details:
The text was updated successfully, but these errors were encountered:
MusKaya
changed the title
Do not add readerFeatures or writerFeatures keys if minReaderVersion or minWriterVersion do not satisfy the requirements
Do not add readerFeatures or writerFeatures keys under checkpoint files if minReaderVersion or minWriterVersion do not satisfy the requirements
Mar 29, 2024
Environment
Delta-rs version: 0.16.1
Binding:
Environment:
Bug
What happened: When creating checkpoints for a table that has
delta.minReaderVersion < 3
,protocol.readerFeatures
key (with empty array value) is created in the beginning of the checkpoint parquet file.Example:
This causes certain query engines (in this case, Trino) fail with
readerFeatures must not exist when minReaderVersion is less than 3
.Example:
Since
readerFeatures
requireminReaderVersion 3
andwriterFeatures
requireminWriterVersion 7
, these two keys (protocol.readerFeatures
andprotocol.writerFeatures
) should not be added whendelta.minReaderVersion < 3
anddelta.minWriterVersion < 7
, respectively.What you expected to happen:
protocol.readerFeatures
andprotocol.writerFeatures
should not be added to the top of the checkpoint parquet files whendelta.minReaderVersion < 3
anddelta.minWriterVersion < 7
, respectively.How to reproduce it: Create a table in Trino and then commit & create checkpoint from delta-rs to that table. Then do a SELECT COUNT(*) query against the table in Trino.
More details:
The text was updated successfully, but these errors were encountered: