File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
crates/core/src/kernel/snapshot Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ pub(super) fn read_protocol(batch: &dyn ProvidesColumnByName) -> DeltaResult<Opt
61
61
62
62
for idx in 0 ..arr. len ( ) {
63
63
if arr. is_valid ( idx) {
64
- return Ok ( Some ( Protocol {
64
+ let mut protocol = Protocol {
65
65
min_reader_version : ex:: read_primitive ( min_reader_version, idx) ?,
66
66
min_writer_version : ex:: read_primitive ( min_writer_version, idx) ?,
67
67
reader_features : collect_string_list ( & maybe_reader_features, idx) . map ( |v| {
@@ -76,7 +76,14 @@ pub(super) fn read_protocol(batch: &dyn ProvidesColumnByName) -> DeltaResult<Opt
76
76
. filter_map ( |v| v. ok ( ) )
77
77
. collect ( )
78
78
} ) ,
79
- } ) ) ;
79
+ } ;
80
+ if protocol. min_reader_version < 3 {
81
+ protocol. reader_features = None
82
+ }
83
+ if protocol. min_writer_version < 7 {
84
+ protocol. writer_features = None
85
+ }
86
+ return Ok ( Some ( protocol) ) ;
80
87
}
81
88
}
82
89
}
You can’t perform that action at this time.
0 commit comments