Sometimes <field>=* prefix queries translate to <field> LIKE '%'
where condition in cassandra. Cassandra doesn't allow such where
clauses and returns error. If QE receives such where clause, ignore
it as it effectively translate to no where condition.
Reviewed: https:/ /review. opencontrail. org/45023 github. com/Juniper/ contrail- controller/ commit/ 7688544c43d1a98 1e2f72d91ddce02 27c99146e2
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R4.1
commit 7688544c43d1a98 1e2f72d91ddce02 27c99146e2
Author: mkheni <email address hidden>
Date: Fri Jul 27 12:33:31 2018 -0700
Fix <field>=* prefix queries in QueryEngine
Sometimes <field>=* prefix queries translate to <field> LIKE '%'
where condition in cassandra. Cassandra doesn't allow such where
clauses and returns error. If QE receives such where clause, ignore
it as it effectively translate to no where condition.
Added systemless test to verify the behavior
Change-Id: I893d3036fd22ce 399186f4cc67812 de2fa46701c
Closes-bug: #1774364