Skip to content

Commit 6afde02

Browse files
fix[layout]: soundness note on values eval (#5747)
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 18dcc75 commit 6afde02

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vortex-layout/src/layouts/dict/reader.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ impl DictReader {
107107
}
108108

109109
fn values_eval(&self, expr: Expression) -> SharedArrayFuture {
110+
// This is unsound since we cannot be sure that all the values are referenced in the query
111+
// after applying the filter, so if the expression is fallible this might fail when it
112+
// shouldn't.
113+
// TODO(joe): fixme
110114
self.values_evals
111115
.entry(expr.clone())
112116
.or_insert_with(|| {
@@ -166,7 +170,7 @@ impl LayoutReader for DictReader {
166170
expr: &Expression,
167171
mask: MaskFuture,
168172
) -> VortexResult<MaskFuture> {
169-
// TODO: fix up expr partitioning with fallible & null sensitive annotations
173+
// TODO(joe): fix up expr partitioning with fallible & null sensitive annotations
170174
let values_eval = self.values_eval(expr.clone());
171175

172176
// We register interest on the entire codes row_range for now, there

0 commit comments

Comments
 (0)