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
When a query can be merged into a single route, we need to remove any arguments that were used while the query was split into multiple smaller queries.
For this query, that is not happening:
select0from user as u
join user_extra as s onu.id=s.user_idjoin music as m onm.user_id=u.idand (s.fooorm.bar)
The resulting plan is:
{
"QueryType": "SELECT",
"Original": "select 0 from user as u join user_extra as s on u.id = s.user_id join music as m on m.user_id = u.id and (s.foo or m.bar)",
"Instructions": {
"OperatorType": "Route",
"Variant": "Scatter",
"Keyspace": {
"Name": "user",
"Sharded": true
},
"FieldQuery": "select 0 from `user` as u, user_extra as s, music as m where 1 != 1",
"Query": "select 0 from `user` as u, user_extra as s, music as m where u.id = s.user_id and u.id = :m_user_id and (s.foo or :m_bar) and m.user_id = u.id and (s.foo or m.bar)",
"Table": "`user`, music, user_extra"
},
"TablesUsed": [
"user.music",
"user.user",
"user.user_extra"
]
}
In the resulting query some predicates still use the arguments: :m_user_id and (s.foo or :m_bar)
This does not fail on release-18.0.
I suspect this is a duplicate of #15420 but keeping it separate for now.
The text was updated successfully, but these errors were encountered:
When a query can be merged into a single route, we need to remove any arguments that were used while the query was split into multiple smaller queries.
For this query, that is not happening:
The resulting plan is:
In the resulting query some predicates still use the arguments:
:m_user_id and (s.foo or :m_bar)
This does not fail on
release-18.0
.I suspect this is a duplicate of #15420 but keeping it separate for now.
The text was updated successfully, but these errors were encountered: