Page MenuHomePhabricator

Turnilo "Display Druid query" gives "general error"
Open, LowPublic

Description

When using Turnilo on any query I've tried (although I'll provide https://w.wiki/xPx as an example), going into the ⚙️ gear menu and selecting "Display Druid query" always returns "General error: Unexpected error occurred".

Unfortunately the JS console is not very helpful, as Turnilo's has of course been minified, but here's the stack trace:

main.js?v=1.29.0:2 Error: Can not have un-introspected external
    at main.js?v=1.29.0:2
    at Array.forEach (<anonymous>)
    at n.failIfIntrospectNeededInDatum (main.js?v=1.29.0:2)
    at n.e.simulateQueryPlan (main.js?v=1.29.0:2)
    at xN (main.js?v=1.29.0:2)
    at yo (main.js?v=1.29.0:2)
    at Xo (main.js?v=1.29.0:2)
    at Go (main.js?v=1.29.0:2)
    at Rs (main.js?v=1.29.0:2)
    at xs (main.js?v=1.29.0:2)

main.js?v=1.29.0:2 Error: Can not have un-introspected external
    at main.js?v=1.29.0:2
    at Array.forEach (<anonymous>)
    at n.failIfIntrospectNeededInDatum (main.js?v=1.29.0:2)
    at n.e.simulateQueryPlan (main.js?v=1.29.0:2)
    at xN (main.js?v=1.29.0:2)
    at yo (main.js?v=1.29.0:2)
    at Xo (main.js?v=1.29.0:2)
    at Go (main.js?v=1.29.0:2)
    at Rs (main.js?v=1.29.0:2)
    at xs (main.js?v=1.29.0:2)

Event Timeline

Weird, it works on https://w.wiki/yPx for example. First guess is that maybe the turnilo config.yaml doesn't have the dimensions spelled out. The other dataset that's like that (automatically configured) is virtual pageviews, and it also fails. If that's true, it'd be a convenience trade-off between specifying the dimensions and getting the query or automatically detecting and getting this error.

I didn't find anything on turnilo's github issues, but I can report it / work with upstream if this becomes higher priority.