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
[SQL] Computations on waterlines should not panic #7594
Today the compiler synthesizes computations on waterlines from the SQL program.
Waterlines have the same type as regular data, but hold conservative values for the data.
So a waterline for positive data can have negative values, for example.
However, some monotone functions are not defined on the same domain as the waterline: LOG of a negative value would panic.
Example:
CREATETABLET(ts INTNOT NULL LATENESS 10, x INTNOT NULL);
CREATEVIEWVASSELECT CAST(LN(ts) ASVARCHAR) AS g, SUM(x) AS s FROM T GROUP BY LN(ts)
The fix is to actually synthesize carefully the computation on waterlines to avoid any panics.
Activity