You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLEArticle (id int, title varchar(255), PRIMARY KEY(id));
CREATETABLEVote (article_id int, user int);
CREATEVIEWVoteCountASSELECTVote.article_id, COUNT(user) AS votes FROM Vote GROUP BYVote.article_id;
QUERY ArticleWithVoteCount: SELECTVoteCount.id, VoteCount.votesAS votes FROM VoteCount WHEREVoteCount.id= ?;
You'll see the server crash with this error:
thread 'worker' panicked at 'tried to look up non-existent column Column { table: Some("VoteCount"), name: "id", function: None, aliases: [] } on node "VoteCount" (columns: [Column { table: Some("VoteCount"), name: "article_id", function: None, aliases: [] }, Column { table: Some("VoteCount"), name: "votes", function: None, aliases: [] }])', server/mir/src/node.rs:283:29
13: noria_mir::node::MirNode::column_id_for_column
at server/mir/src/node.rs:0
14: noria_mir::node::MirNode::column_id_for_column
at server/mir/src/node.rs:237
15: noria_server::controller::mir_to_flow::make_project_node::{{closure}}
at server/src/controller/mir_to_flow.rs:799
24: noria_server::controller::mir_to_flow::make_project_node
at server/src/controller/mir_to_flow.rs:797
25: noria_server::controller::mir_to_flow::mir_node_to_flow_parts
at server/src/controller/mir_to_flow.rs:255
26: noria_server::controller::mir_to_flow::mir_query_to_flow_parts
at server/src/controller/mir_to_flow.rs:38
27: noria_server::controller::sql::SqlIncorporator::add_query_via_mir
at server/src/controller/sql/mod.rs:561
28: noria_server::controller::sql::SqlIncorporator::add_select_query
at server/src/controller/sql/mod.rs:508
29: noria_server::controller::sql::SqlIncorporator::nodes_for_named_query
at server/src/controller/sql/mod.rs:905
30: noria_server::controller::sql::SqlIncorporator::add_parsed_query
at server/src/controller/sql/mod.rs:151
31: noria_server::controller::recipe::Recipe::activate
at server/src/controller/recipe/mod.rs:458
32: noria_server::controller::inner::ControllerInner::apply_recipe::{{closure}}
at server/src/controller/inner.rs:1011
33: noria_server::controller::inner::ControllerInner::migrate
at server/src/controller/inner.rs:688
34: noria_server::controller::inner::ControllerInner::apply_recipe
at server/src/controller/inner.rs:1010
35: noria_server::controller::inner::ControllerInner::install_recipe
at ./server/src/controller/inner.rs:1115
36: noria_server::controller::inner::ControllerInner::external_request::{{closure}}
at ./server/src/controller/inner.rs:277
This should instead be communicated as an error to the client who tried to install that recipe.
The text was updated successfully, but these errors were encountered:
Try installing this recipe:
You'll see the server crash with this error:
This should instead be communicated as an error to the client who tried to install that recipe.
The text was updated successfully, but these errors were encountered: