File tree Expand file tree Collapse file tree
main/java/cz/o2/proxima/direct/io/cassandra
test/java/cz/o2/proxima/direct/io/cassandra Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ private Optional<BoundStatement> elementDelete(StreamElement ingest) {
272272
273273 @ Override
274274 protected String createInsertStatement (StreamElement element ) {
275- String ttlStatement = ttl > 0 ? ("USING TTL " + ttl + " " ) : "" ;
275+ String ttlStatement = ttl > 0 ? ("AND TTL " + ttl + " " ) : "" ;
276276 if (element .getAttributeDescriptor ().isWildcard ()) {
277277 // use the first part of the attribute name
278278 String colName = toColName (element .getAttributeDescriptor ());
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ public void testIngestWithTtl() {
212212 assertSame (bound , boundStatement .get ());
213213 assertEquals (1 , preparedStatement .size ());
214214 assertEquals (
215- "UPDATE my_table USING TIMESTAMP ? USING TTL 86400 SET my_attribute=? WHERE hgw=?" ,
215+ "UPDATE my_table USING TIMESTAMP ? AND TTL 86400 SET my_attribute=? WHERE hgw=?" ,
216216 preparedStatement .get (0 ));
217217 }
218218
You can’t perform that action at this time.
0 commit comments