citus_docs icon indicating copy to clipboard operation
citus_docs copied to clipboard

Add general SQL workaround involving CTEs

Open begriffs opened this issue 7 years ago • 1 comments

Why are we implementing it? (sales eng)

What are the typical use cases?

Complex subqueries that Citus refuses to run.

Communication goals (e.g. detailed howto vs orientation)

Explain how rewriting certain subqueries as CTEs is a workaround for complex subqueries.

TODO: Sai will provide examples of queries that don't work, and their rewritten forms that do.

Good locations for content in docs structure

http://docs.citusdata.com/en/v7.5/develop/reference_workarounds.html

How does this work? (devs)

Example sql

Corner cases, gotchas

Are there relevant blog posts or outside documentation about the concept/feature?

Link to relevant commits and regression tests if applicable

begriffs avatar Aug 08 '18 21:08 begriffs

Just FYI:

An example query/use-case we've been asked on github: https://github.com/citusdata/citus/issues/2321

Note that the original query that we need to rewrite is not a subquery, but a repartition outer join that Citus doesn't support.

onderkalaci avatar Aug 15 '18 13:08 onderkalaci