Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

emile.salem_166018 avatar image
emile.salem_166018 asked ·

Node.js driver query generation error: USING clause is misplaced

the USING TTL clause on UPDATE/INSERT query should be placed at the beginning of the query

as in:

UPDATE users USING TTL 10 SET favs['color'] = 'green' WHERE id = 'jsmith'

The Node.js mapper places the USING clause at the end: https://github.com/datastax/nodejs-driver/blob/master/lib/mapping/query-generator.js#L129

mappernode.jsusing ttl
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

jorgebg avatar image
jorgebg answered ·

Thanks Emile!

I've created a ticket to track it: https://datastax-oss.atlassian.net/browse/NODEJS-538


Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.