Commit 852f1d2
authored
Array Metadata (#1985)
The current ArrayMetadata system was put together somewhat quickly and
uses `serde` + Flexbuffers to serialize all metadata.
The end state looks like this:
- [ ] An array has a fixed 8 bytes of metadata. If it needs more, it
should use a buffer (made possible by #1743)
- [ ] Rkyv can optionally be used to help with serde for these bytes.
- [ ] No eager deserialization of metadata is performed, although arrays
should validate metadata in the `ValidateVTable` (see #1979).
To support 8 byte metadata, we need to:
- [ ] Move scalars and scalar values out of metadata (e.g.
ConstantArray)
- [ ] Move shift from FoR into BitPacking (this is a bit cheeky, it's
not strictly necessary, but FoR is then left with a 8-byte PValue for
metadata, and shifting feels like it should live in BitPacking anyway?)
- [ ] All other metadata should easily fit into 8 bytes.1 parent e1a7d47 commit 852f1d2
File tree
59 files changed
+1004
-521
lines changed- docs
- encodings
- alp/src
- alp_rd
- alp
- bytebool/src
- datetime-parts/src
- dict/src
- fastlanes
- goldenfiles
- src
- bitpacking
- delta
- for
- fsst/src
- runend/src
- zigzag/src
- vortex-array
- src
- array
- bool
- chunked
- constant
- extension
- list
- null
- primitive
- sparse
- struct_
- varbinview
- compute
- varbin
- data
- encoding
- vortex-buffer
- src
- vortex-dtype
- src
- vortex-error
- src
- vortex-ipc/src/messages
- vortex-sampling-compressor/tests
- vortex-scalar/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
59 files changed
+1004
-521
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 | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
| |||
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
63 | | - | |
| 58 | + | |
64 | 59 | | |
65 | 60 | | |
66 | 61 | | |
| |||
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
168 | | - | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | | - | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
0 commit comments