I have a table with two keys KeyA
and KeyB
on AWS Keyspaces.
I open a CQL editor on AWS Console and run the query:
SELECT fields FROM table WHERE KeyA = 'value' AND KeyB = 'value' LIMIT 10 ALLOW FILTERING
It returns 10 rows, I copy the query to my node.js project and run the same query, also returns 10 rows.
Now I want to filter by only ONE key, I open a CQL editor on AWS Console and run the query:
SELECT fields FROM table WHERE KeyA = 'value' LIMIT 10 ALLOW FILTERING
and returns 10 fields, now I copy and paste the same query to my node project but this time returns 0 rows.
I believe I'm missing some configuration on my node.js? it's the library issue? AWS issue?
I'm using Node v14.16.1, cassandra-driver v4.6.1