Commit 1f894d3
authored
feat: compare array metadata against checked in goldenfiles (#1812)
This is part of a general epic (is that word taboo?) around stability. I
have a separate changeset that stores an entire Vortex file and checks
for round-trip compatibility.
However, it's also helpful to know on a per-encoding level that the
metadata format is stable.
This PR adds [goldenfile](https://crates.io/crates/goldenfile) tests for
all encoding metadata. This is a bit simplistic: we don't check for
backward/forward compatibility, this is just an attempt to make it
clearer on PRs when changes are made to the metadata format.
Now when changes are made to Array metadata, you should re-run the test
with
```
UPDATE_GOLDENFILES=1 cargo test -p ...
```
and that will update the checked-in metadatas.
Roughly half of the changed files are checked-in snapshots, most of the
other half are simple test definitions. The only serious change is the
addition of the `check_metadata` helper in test-utils.1 parent 98ac114 commit 1f894d3
File tree
66 files changed
+496
-34
lines changed- encodings
- alp
- goldenfiles
- src
- alp_rd
- alp
- bytebool
- goldenfiles
- src
- datetime-parts
- goldenfiles
- src
- dict
- goldenfiles
- src
- fastlanes
- goldenfiles
- src
- bitpacking
- delta
- for
- fsst
- goldenfiles
- src
- roaring
- goldenfiles
- src
- boolean
- integer
- runend-bool
- goldenfiles
- src
- runend
- goldenfiles
- src
- zigzag
- goldenfiles
- src
- vortex-array
- goldenfiles
- src
- array
- bool
- chunked
- constant
- list
- primitive
- sparse
- struct_
- varbinview
- varbin
- vortex-datetime-dtype/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
66 files changed
+496
-34
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
261 | 263 | | |
| 264 | + | |
262 | 265 | | |
263 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
264 | 282 | | |
265 | 283 | | |
266 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
| |||
0 commit comments