DataStax Academy FAQ

DataStax Academy migrated to a new learning management system (LMS) in July 2020. We are also moving to a new Cassandra Certification process so there are changes to exam bookings, voucher system and issuing of certificates.

Check out the Academy FAQ pages for answers to your questions:


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.