-
Notifications
You must be signed in to change notification settings - Fork 885
sourceTable: unsupported list item type: *ast.JoinExpr #1100
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
Comments
CREATE TABLE group_calc_totals (
npn text,
group_id text
);
CREATE TABLE producer_group_attribute (
npn_external_map_id text,
group_id text
);
CREATE TABLE npn_external_map (
id text
);
-- name: Percentile :exec
UPDATE group_calc_totals gct
SET npn = nem.npn
FROM producer_group_attribute ga
JOIN npn_external_map nem ON ga.npn_external_map_id = nem.id
WHERE gct.group_id = ga.group_id; https://play.sqlc.dev/p/125fcccc7ba6707e40dbabc2d698313f7ec6ea9695672d49e37bd75ffb3352e2 |
any update on this issue? |
1 similar comment
any update on this issue? |
Hate to add to unnecessary notifications, but is there any update on this? |
Any news? |
Hello, any update on this? |
No update yet, but adding this to my list to look for 1.23 |
Fixed in #2841 and will be released in v1.23 |
This is fixed in v1.23.0 by enabling the database-backed query analyzer. We added a test case for this issue so it won’t break in the future. You can play around with the working example on the playground |
Uh oh!
There was an error while loading. Please reload this page.
UPDATE group_calc_totals gct SET npn = nem.npn FROM producer_group_attribute ga JOIN npn_external_map nem ON ga.npn_external_map_id = nem.id WHERE gct.group_id = ga.group_id;
This produces the error, sourceTable: unsupported list item type: *ast.JoinExpr.
The SQL is valid Postgres and executes as expected. I'm using version 1.8 of sqlc.
The text was updated successfully, but these errors were encountered: