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
QUERY: SELECT COUNT(*) + MIN("pH") * MEDIAN("index") AS "fA" FROM ( SELECT DISTINCT("index") AS "_" FROM "average_temperature" LIMIT 6162) ORDER BY time ASC
The reason this seems to happen is because the wildcard expansion code just outright ignores any binary expression.
The fix isn't that simple. The main problem is that when calls are substituted, they're given an alternative name so they don't all just show up as the function name like mean. They do this by setting the alias attribute on the field that gets created.
Unfortunately, the only way to do this reliably would be to recurse through the binary expression and return a list of new expressions. But the Field type isn't an expression and is treated differently (only at the top level) so I'm not yet sure how to get that iteration process working yet.
I'll look at it and see what I can come up with though.
@e-dard I'm just going to prevent the panic and say this is currently impossible. Since it panicked before a change that now forbids it, I'm pretty certain nobody was using this successfully.
This issue was found by fuzzing the database with a query generator tool. It may be possible to simplify the query to help identify the root cause.
Dataset
Query
Result
Server returns a panic response.
See attached trace.
1488219733564080130-panic.txt
The text was updated successfully, but these errors were encountered: