Repository navigation
Commit 4af5d55
authored
Struct reader partitioning respects struct validity (#10449)
Current implementation returns lit(true) for pack()'s validity. This in
turn makes many things incorrect. For example, "a.x > 5" where a
is nullable may read x's value under NULL rows.
Fix this by adding a discriminant virtual field which is struct's
validity.
This is internal and not addressable by user. This is a temporary
solution, since you need to construct FieldName (~ a string) from a
validity discriminant option as well.
This validity field is replaced to is_not_null($) while evaluating the
expression, and struct's bound expression is now mask(pack(...),
is_not_null($)) in case of a nullable struct.1 parent 1269e82 commit 4af5d55
4 files changed
Lines changed: 686 additions & 122 deletions
File tree
- vortex-array/src
- dtype
- arbitrary
- expr/transform
- vortex-layout/src/layouts/struct_
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 35 | | |
45 | 36 | | |
46 | 37 | | |
| |||
0 commit comments