wecisecode hace 1 semana
padre
commit
a71d7b5e7b

+ 7 - 0
odbctest/mql/basic/31seqkey/10class.mql

@@ -16,3 +16,10 @@ create class if not exists /test/sequence (
 ;
 
 delete from /test/sequence with version;
+
+-- cassandra内部的删除操作是异步的,需要等待一段时间,确保删除操作完成
+-- 否则后续插入的数据可能会被立即删除
+/**
+sleep(1s)
+**/
+;

+ 2 - 0
odbctest/mql/basic/31seqkey/11data.mql

@@ -289,6 +289,8 @@ insert into /test/sequence (v_varchar, v_text, v_int, v_bigint, v_float, v_doubl
 			}', 1, 1234567890123456789, 1.1, 1.1234567890123456, 1.123456, true  )
 ;
 
+-- cassandra内部的插入数据索引操作是异步的,需要等待一段时间,确保插入数据索引操作完成
+-- 否则刚刚插入的数据可能会无法通过索引查询到
 /**
 sleep(1s)
 **/