Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Citus Streaming Subscription issue #10154

Open
rob-64 opened this issue Mar 4, 2024 · 0 comments
Open

Citus Streaming Subscription issue #10154

rob-64 opened this issue Mar 4, 2024 · 0 comments
Labels
k/v3-bug Bug affecting Hasura v3 (DDN)

Comments

@rob-64
Copy link

rob-64 commented Mar 4, 2024

Hi, maybe I am doing something wrong, but I cannot get streaming subs to work with a distributed table. I always get the follow error from postgres:

// ERROR: cannot perform a lateral outer join when a distributed subquery
// references a table function
// STATEMENT: SELECT "__subs"."result_id" , "__fld_resp"."root" AS "result",
// "__fld_resp"."cursor" AS "cursor" FROM UNNEST(($1)::uuid[], ($2)::json[]) AS
// "__subs ││ "("result_id", "result_vars") LEFT OUTER JOIN LATERAL (SELECT
// json_build_object('tracksummary_stream', "_tracksummary_stream"."root" ) AS
// "root", to_json("_tracksummary_stream"."cursor" ) AS "c ││ ursor" FROM
// (SELECT coalesce(json_agg("root" ORDER BY "root.pg.meta_dateTimeLastUpdate"
// ASC ), '[]' ) AS "root", json_build_object('meta_dateTimeLastUpdate',
// (MAX("root.pg.meta_dateTimeLastUpd ││ ate" ))::text ) AS "cursor" FROM
// (SELECT row_to_json((SELECT "_e" FROM (SELECT
// "_root.base"."featureCollection" AS "featureCollection" ) AS "_e" ) ) AS
// "root", "_root.base"."met ││ a_dateTimeLastUpdate" AS
// "root.pg.meta_dateTimeLastUpdate" FROM (SELECT * FROM "public"."tracksummary"
// WHERE (("public"."tracksummary"."meta_dateTimeLastUpdate") >
// ((("__subs"."result_vars"# ││ >>ARRAY['cursor',
// 'meta_dateTimeLastUpdate']))::timestamptz)) ORDER BY
// "meta_dateTimeLastUpdate" ASC LIMIT 2 ) AS "_root.base" ORDER BY
// "root.pg.meta_dateTimeLastUpdate" ASC ) AS "_root" ││ ) AS
// "_tracksummary_stream" ) AS "__fld_resp" ON ('true')
@rob-64 rob-64 added the k/v3-bug Bug affecting Hasura v3 (DDN) label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/v3-bug Bug affecting Hasura v3 (DDN)
Projects
None yet
Development

No branches or pull requests

1 participant