superset icon indicating copy to clipboard operation
superset copied to clipboard

Wrong request to the DB

Open NomadBYlife opened this issue 1 year ago • 2 comments

Hello! I installed version 3.0.1 of Superset to display charts! I have a MongoDB database so that the superset can work with it, I installed Apache Drill 1.21.1 Everything works, but there is a problem with the Drill to Details functionality. When I click the "Drill To Detail" button I get this error: "Unexpected error: Error: The number that was passed in is not a number." If I look at Apache Drill's logs, a request comes: SELECT COUNT() AS COUNT(*) FROM mongo.events_base.events LIMIT 50000 and indeed, if I check this request in the SQL Lab tab, it returns null But! if I change to SELECT COUNT() AS COUNT it works well, it retunrs 919176

If I clicl the "View as table" it works well. And the request normal : SELECT vendor AS vendor, COUNT(*) AS count FROM mongo.events_base.events GROUP BY vendor LIMIT 100

Снимок экрана 2024-01-16 в 15 16 21 Снимок экрана 2024-01-16 в 15 16 59 Снимок экрана 2024-01-16 в 15 19 22 Снимок экрана 2024-01-16 в 15 19 47

I would be very grateful for any help in this matter, we have not been able to get around this for 2-3 weeks

NomadBYlife avatar Jan 16 '24 14:01 NomadBYlife

I'm tempted to close this as stale, but curious to hear if you're still facing this, or found an acceptable workaround. I'm also curious if @cgivre sees a way forward here.

rusackas avatar May 13 '24 18:05 rusackas

@NomadBYlife Do you have to alias your columns as COUNT(*)? It seems like something post-Drill is not liking that alias and therefore the obvious workaround would be to use a different alias.

cgivre avatar May 13 '24 18:05 cgivre