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
select42from user u
join user_extra ue onu.id=ue.user_idjoin music m onm.user_id=u.idwhereu.fooorm.fooorue.foo
produces a bad query plan when the join predicates allow merging all three tables into the same shard query. The generated query plan includes an incorrect WHERE clause, using :m_foo without providing its value, leading to the error:
{
"OperatorType": "Route",
"Variant": "Scatter",
"Keyspace": {
"Name": "user",
"Sharded": true
},
"FieldQuery": "select 42 from `user` as u, user_extra as ue, music as m where 1 != 1",
"Query": "select 42 from `user` as u, user_extra as ue, music as m where u.id = ue.user_id and (u.foo or :m_foo or ue.foo) and m.user_id = u.id and (u.foo or m.foo or ue.foo)",
"Table": "`user`, music, user_extra"
}
The text was updated successfully, but these errors were encountered:
The following SQL query:
produces a bad query plan when the join predicates allow merging all three tables into the same shard query. The generated query plan includes an incorrect WHERE clause, using :m_foo without providing its value, leading to the error:
Query plan:
The text was updated successfully, but these errors were encountered: