Chart Error- Querying AWS Redshift Spectrum nested tables with Superset
adolitos opened this issue · comments
Hi guys, I'm using Superset 1.4.0 from my Windows 10
I'm trying to create a chart using a small dataset from AWS Redshift
The yellow marked columns comes from tag_set struct column.
I can reproduce the same query on Superset SQL Lab
I started getting errors when move to Chart step
Unexpected error
Error: Spectrum nested query error DETAIL: ----------------------------------------------- error: Spectrum nested query error code: 8001 context: A subquery that refers to a nested table cannot contain ORDER BY clause. query: 0 location: nested_query_rewriter.cpp:775 process: padbmaster [pid=10014] -----------------------------------------------
I have changed the query, removing group by, order by and limit clauses... and It worked, but I'm affraid to face scenarios in future where I can get rid of this operations.
Like using ctes, subqueries, jinja templates...
Can you guys help me with that?
Regards,
André Santos
My initial hunch here is that this is a peculiarity of how Redshift (Spectrum) works. But I'm not sure. I'm asking around to see if I can find someone who knows that DB ¯\_(ツ)_/¯
@adolitos can you share the query that is produced in the 3rd screenshot? You can get it by clicking the hamburger menu (☰) in the top right.
have similar issue
have similar issue
Can you share any details, queries, or steps to reproduce the issue?
Closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please open a new Issue or a PR to address the problem.