You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Value sign: entropy is labelled NonNegative but a single-item entropy is -0.0 under the sign-bit definition #1271
entropy over a group with a single distinct item: the exact value is −Σ p·log p with p = 1, i.e. −(1·0.0) = −0.0 in IEEE arithmetic. The memo labels every frequency-entropy value NonNegative, but under the sign-bit definition of ValueSign (#1230: NonNegative = every non-NaN value has its sign bit clear) −0.0 has its sign bit set, so the label is wrong for this value. A UnivMon entropy estimate has the same label; whether its estimator can return a value below zero (it sums signed terms without a clamp) is not verified.
Where
crates/types/src/stages/logical/column_properties.rs on the #1230 branch:
the SummaryEstimate readout: SketchStatistic::FrequencyEntropy → NonNegative (sketch estimate).
Any other measure labelled NonNegative whose computation can end in a negated zero or a rounding error below zero should be checked the same way (for example a variance computed as E[x²] − E[x]²).
Options
Label entropy Unknown (simplest, conservative).
Keep NonNegative and make the executor's entropy readouts return +0.0 for a zero result (clamp −0.0, and clamp a negative estimate to 0 if the estimator can produce one), with a test per readout.
Activity
feat(stage0, types): memo hash-consing, group properties (column_sign…