Commit fe2b9746 authored by Sergei Golubchik's avatar Sergei Golubchik

fixup! streaming

parent c2963e5f
......@@ -231,21 +231,21 @@ id1 id2 vec_distance_euclidean(t1.v, t2.v)
select id,vec_distance_euclidean(v, x'b047263C9F87233fcfd27e3eae493e3f0329f43e') d
from t1 order by d limit 9;
id d
9 0.4719976290006591
10 0.5069011044450041
3 0.5865673124650332
7 0.7344464697214867
5 0.7671033529042712
1 0.8625150112991553
2 0.8750391593753565
4 1.1588173344514852
6 1.228441526895331
9 0.47199
10 0.50690
3 0.58656
7 0.73444
5 0.76710
1 0.86251
2 0.87503
4 1.15881
6 1.22844
select id,vec_distance_euclidean(v, x'b047263C9F87233fcfd27e3eae493e3f0329f43e') d
from t1 where id % 3 = 0 order by d limit 3;
id d
9 0.4719976290006591
3 0.5865673124650332
6 1.228441526895331
9 0.47199
3 0.58656
6 1.22844
select * from (
select id,vec_distance_euclidean(v, x'b047263C9F87233fcfd27e3eae493e3f0329f43e') d
from t1 where id < 10
......
......@@ -56,8 +56,10 @@ select id>0,vec_distance_euclidean(v, x'123456') d from t1 order by d limit 3;
select t1.id as id1, t2.id as id2, vec_distance_euclidean(t1.v, t2.v) from t1, t1 as t2 order by 3,1,2;
# where clause
--replace_regex /(\.\d{5})\d+/\1/
select id,vec_distance_euclidean(v, x'b047263C9F87233fcfd27e3eae493e3f0329f43e') d
from t1 order by d limit 9;
--replace_regex /(\.\d{5})\d+/\1/
select id,vec_distance_euclidean(v, x'b047263C9F87233fcfd27e3eae493e3f0329f43e') d
from t1 where id % 3 = 0 order by d limit 3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment