Closed lwwmanning closed 4 days ago
this is split off from #1068
@lwwmanning need to look deeper but the whole idea of compression tree was that you could return a different array than the compressor. The compression tree would send you back to that path
@lwwmanning need to look deeper but the whole idea of compression tree was that you could return a different array than the compressor. The compression tree would send you back to that path
we only did that in the FoR compressor for constant 0, and I'm not sure that's right (i.e., if it's constant 0, the Constant compressor or should win over the FoR compressor with Constant child in this new implementation, rather than saying that we should encode-like with the FoRCompressor)
also, of the 5 things I changed, I'd argued all except the FoR one are clearly bugs
If we got to for compressor then that means array isn’t constant. Either stats are missing or it’s not constant. Not constant case is likely sparse 0s
If we got to for compressor then that means array isn’t constant. Either stats are missing or it’s not constant. Not constant case is likely sparse 0s
Yep, and in that case we should do Frequency encoding, not FoR
but assertions are in fact quite nice sometimes.
😱
Fixed the following misalignments:
like.child(0)
Also improved the CompressionTree display impl to use TreeDisplay, which is much nicer & more useful for debugging. And I removed the
panic_in_result_fn
lint, since we banpanic
, but assertions are in fact quite nice sometimes.