wecisecode пре 2 недеља
родитељ
комит
7f195502eb

+ 21 - 1
odbctest/mql/problem/basic/10index/88.mql

@@ -41,7 +41,7 @@ create class if not exists /test/性能AaB (
     },
     keys(主机AaB),
     indexes(主机AaB )
-)with autosearch=true , version=false , key=manu, alias='性能测试' , nickname='性能AaB'
+)with core=cassandraonly, autosearch=true , version=false , key=manu, alias='性能测试' , nickname='性能AaB'
 ;
 
 insert into /test/性能AaB	 (id,主机AaB,v_date,v_timestamp) values ('性能AaB:test',"服务器1","2026-04-02","2026-04-02 15:55:55");
@@ -59,6 +59,19 @@ match("name", "noindex", "isindex", 0)
 **/
 ;
 
+-- sleep 3s or select with refresh for wait lucene index reday
+/**
+sleep(3s)
+**/
+;
+
+select * from /test/性能AaB where v_date between '2026-04-02' and '2026-04-03' limit 10
+/**
+output()
+count(1)
+**/
+;
+
 select * from /test/性能AaB where v_date between 1774972800000 and 1776182400000 limit 10
 /**
 output()
@@ -66,6 +79,13 @@ count(1)
 **/
 ;
 
+select * from /test/性能AaB where v_timestamp between '2026-04-02 00:00:00.000' and '2026-04-03 00:00:00.000' limit 10
+/**
+output()
+count(1)
+**/
+;
+
 select * from /test/性能AaB where v_timestamp between 1774972800000 and 1776182400000 limit 10
 /**
 output()

+ 14 - 0
odbctest/mql/problem/basic/10index/88_cache.mql

@@ -58,6 +58,13 @@ match("name", "noindex", "isindex", 0)
 **/
 ;
 
+select * from /test/性能AaB_Cache where v_date between '2026-04-02' and '2026-04-03' limit 10
+/**
+output()
+count(1)
+**/
+;
+
 select * from /test/性能AaB_Cache where v_date between 1774972800000 and 1776182400000 limit 10
 /**
 output()
@@ -65,6 +72,13 @@ count(1)
 **/
 ;
 
+select * from /test/性能AaB_Cache where v_timestamp between '2026-04-02 00:00:00.000' and '2026-04-03 00:00:00.000' limit 10
+/**
+output()
+count(1)
+**/
+;
+
 select * from /test/性能AaB_Cache where v_timestamp between 1774972800000 and 1776182400000 limit 10
 /**
 output()

+ 17 - 1
odbctest/mql/problem/basic/10index/88_local.mql

@@ -58,6 +58,13 @@ match("name", "noindex", "isindex", 0)
 **/
 ;
 
+select * from /test/性能AaB_Local where v_date between '2026-04-02' and '2026-04-03' limit 10
+/**
+output()
+count(1)
+**/
+;
+
 select * from /test/性能AaB_Local where v_date between 1774972800000 and 1776182400000 limit 10
 /**
 output()
@@ -65,6 +72,13 @@ count(1)
 **/
 ;
 
+select * from /test/性能AaB_Local where v_timestamp between '2026-04-02 00:00:00.000' and '2026-04-03 00:00:00.000' limit 10
+/**
+output()
+count(1)
+**/
+;
+
 select * from /test/性能AaB_Local where v_timestamp between 1774972800000 and 1776182400000 limit 10
 /**
 output()
@@ -72,6 +86,7 @@ count(1)
 **/
 ;
 
+-- native sql 日期类型保存为 毫秒数
 {"sql":"select * from /test/性能AaB_Local where v_date between 1774972800000 and 1776182400000 limit 10"}
 /**
 output()
@@ -79,13 +94,14 @@ count(1)
 **/
 ;
 
-{"sql":"select "order".id from /test/性能AaB_Local where v_date "order" between 1774972800000 and 1776182400000 limit 10"}
+{"sql":"select \"order\".id from /test/性能AaB_Local \"order\" where \"order\".v_date between 1774972800000 and 1776182400000 limit 10"}
 /**
 output()
 count(1)
 **/
 ;
 
+-- native sql 时间戳类型保存为 毫秒数
 {"sql":"select * from /test/性能AaB_Local where v_timestamp between 1774972800000 and 1776182400000 limit 10"}
 /**
 output()

+ 17 - 1
odbctest/mql/problem/basic/10index/88_memdb.mql

@@ -59,6 +59,13 @@ match("name", "noindex", "isindex", 0)
 **/
 ;
 
+select * from /test/性能AaB_MemDB where v_date between '2026-04-02' and '2026-04-03' limit 10
+/**
+output()
+count(1)
+**/
+;
+
 select * from /test/性能AaB_MemDB where v_date between 1774972800000 and 1776182400000 limit 10
 /**
 output()
@@ -66,6 +73,13 @@ count(1)
 **/
 ;
 
+select * from /test/性能AaB_MemDB where v_timestamp between '2026-04-02 00:00:00.000' and '2026-04-03 00:00:00.000' limit 10
+/**
+output()
+count(1)
+**/
+;
+
 select * from /test/性能AaB_MemDB where v_timestamp between 1774972800000 and 1776182400000 limit 10
 /**
 output()
@@ -73,6 +87,7 @@ count(1)
 **/
 ;
 
+-- native sql 日期类型保存为 毫秒数
 {"sql":"select * from /test/性能AaB_MemDB where v_date between 1774972800000 and 1776182400000 limit 10"}
 /**
 output()
@@ -80,13 +95,14 @@ count(1)
 **/
 ;
 
-{"sql":"select "order".id from /test/性能AaB_MemDB "order" where v_date between 1774972800000 and 1776182400000 limit 10"}
+{"sql":"select \"order\".id from /test/性能AaB_MemDB \"order\" where \"order\".v_date between 1774972800000 and 1776182400000 limit 10"}
 /**
 output()
 count(1)
 **/
 ;
 
+-- native sql 时间戳类型保存为 毫秒数
 {"sql":"select * from /test/性能AaB_MemDB where v_timestamp between 1774972800000 and 1776182400000 limit 10"}
 /**
 output()