@@ -181,17 +181,17 @@ End Function
181
181
#### Validation
182
182
183
183
Drivers MUST validate vector metadata and raise an error if any invariant is violated:
184
-
184
+
185
185
- When unpacking binary data into a FLOAT32 Vector structure, the length of the binary data following the dtype and
186
186
padding MUST be a multiple of 4 bytes.
187
- - Padding MUST be 0 for all dtypes where padding doesn’t apply, and MUST be within \ [ 0, 7\ ] for PACKED_BIT.
188
- - A PACKED_BIT vector MUST NOT be empty if padding is in the range \ [ 1, 7\ ] .
189
- - For a PACKED_BIT vector with non-zero padding, ignored bits SHOULD be zero.
190
- - When encoding, if ignored bits aren't zero, drivers SHOULD zero out or raise an exception,
191
- but drivers MAY leave them as-is if backwards-compatibility is a concern.
192
- - When decoding, drivers SHOULD raise an error if decoding non-zero ignored bits,
193
- but drivers MAY choose not to for backwards compatibility.
194
- - Drivers SHOULD use the next major release to conform to ignored bits being zero.
187
+ - Padding MUST be 0 for all dtypes where padding doesn’t apply, and MUST be within [ 0, 7] for PACKED_BIT.
188
+ - A PACKED_BIT vector MUST NOT be empty if padding is in the range [ 1, 7] .
189
+ - For a PACKED_BIT vector with non-zero padding, ignored bits SHOULD be zero.
190
+ - When encoding, if ignored bits aren't zero, drivers SHOULD zero out or raise an exception, but drivers MAY leave
191
+ them as-is if backwards-compatibility is a concern.
192
+ - When decoding, drivers SHOULD raise an error if decoding non-zero ignored bits, but drivers MAY choose not to for
193
+ backwards compatibility.
194
+ - Drivers SHOULD use the next major release to conform to ignored bits being zero.
195
195
196
196
Drivers MUST perform this validation when a numeric vector and padding are provided through the API, and when unpacking
197
197
binary data (BSON or similar) into a Vector structure.
0 commit comments