Skip to content
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

Support LIKE queries for Cassandra with SASI #1034

Open
yhilem opened this issue Mar 16, 2019 · 2 comments
Open

Support LIKE queries for Cassandra with SASI #1034

yhilem opened this issue Mar 16, 2019 · 2 comments

Comments

@yhilem
Copy link

yhilem commented Mar 16, 2019

Hi,
Since Cassandra 3.4, LIKE queries can be achieved using a SSTable Attached Secondary Index (SASI).
JPQL supports the SQL LIKE operator to provide a limited form of string pattern matching.
Is this feature supported with SASI?
Thanks
Y. HILEM

@devender-yadav
Copy link
Contributor

No this is not supported.

@yhilem
Copy link
Author

yhilem commented Mar 16, 2019

If i create SASI index:

CREATE CUSTOM INDEX user_last_name_sasi_idx ON user (last_name)
 USING 'org.apache.cassandra.index.sasi.SASIIndex';

I can normally use the following native query to find users whose last name begins with “N”:
SELECT * FROM user WHERE last_name LIKE 'N%';
However, it depends on the resolution of this issue #1029.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants