wecisecode 1 週間 前
コミット
1f9f03e917
2 ファイル変更69 行追加0 行削除
  1. 18 0
      odbctest/mql/basic/10index/10class.mql
  2. 51 0
      odbctest/mql/basic/10index/88.mql

+ 18 - 0
odbctest/mql/basic/10index/10class.mql

@@ -24,8 +24,26 @@ create class if not exists /test/double (
 		vd7	double,
 		vd8	double,
 		vd9	double,
+		xd0	double,
+		xd1	double,
+		xd2	double,
+		xd3	double,
+		xd4	double,
+		xd5	double,
+		xd6	double,
+		xd7	double,
+		xd8	double,
+		xd9	double,
 		
 		indexes(vd0, vd1, vd2, vd3, vd4, vd5, vd6, vd7, vd8, vd9),
 		keys(vid)
 	) with core=cassandraonly;
 
+cql: select * from field where namespace='test' and name in ('vd1','xd1','vd9','xd9')
+/**
+match("name", "vd1", "isindex", 1)
+match("name", "xd1", "isindex", 0)
+match("name", "vd9", "isindex", 1)
+match("name", "xd9", "isindex", 0)
+**/
+;

+ 51 - 0
odbctest/mql/basic/10index/88.mql

@@ -0,0 +1,51 @@
+
+delete 性能备份AaB from /test/性能AaB with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;
+
+delete 性能AaB from /test/性能AaB with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;
+
+delete from /test/性能AaB with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;
+
+drop class if exists /test/性能AaB;
+
+create class if not exists /test/性能AaB (
+    主机AaB					varchar,
+	性能备份AaB					bucket 		{
+            "dict": true,
+            "slot": 5,
+            "ttl": 2,
+            "type": "promdb",
+            "version": 1
+    },
+    noindex				varchar,
+    性能AaB				bucket 		{
+            "dict": true,
+            "slot": 5,
+            "ttl": 2,
+            "type": "promdb",
+            "version": 1
+    },
+    keys(主机AaB),
+    indexes(主机AaB )
+)with autosearch=true , version=false , key=manu, alias='性能测试' , nickname='性能AaB'
+;
+
+cql: select * from field where namespace='test' and name in ('主机aab','noindex')
+/**
+match("name", "主机aab", "isindex", 1)
+match("name", "noindex", "isindex", 0)
+**/
+;
+
+drop class if exists /test/性能AaB;