Commit ae0840a
fix: return 0.0 compression ratio to prevent automatic selection
VarBinScheme is a format conversion utility, not a compression scheme.
VarBinView is generally more efficient than VarBin for most workloads,
especially with small strings that can be inlined (≤12 bytes).
Return 0.0 from expected_compression_ratio to indicate this scheme should
not be automatically selected by the compressor. It can still be used
explicitly when VarBin format is specifically needed.
This fixes test failures where VarBin was being selected and causing
incompatibilities with Arrow operations that expect consistent types.
Signed-off-by: Joe Isaacs <[email protected]>
Co-Authored-By: Claude <[email protected]>1 parent e17e8b8 commit ae0840a
1 file changed
+6
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
212 | 197 | | |
213 | 198 | | |
214 | 199 | | |
| |||
0 commit comments