Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fe2b9746
Commit
fe2b9746
authored
Oct 01, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! streaming
parent
c2963e5f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
mysql-test/main/vector.result
mysql-test/main/vector.result
+12
-12
mysql-test/main/vector.test
mysql-test/main/vector.test
+2
-0
No files found.
mysql-test/main/vector.result
View file @
fe2b9746
...
...
@@ -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.47199
76290006591
10 0.50690
11044450041
3 0.58656
73124650332
7 0.73444
64697214867
5 0.76710
33529042712
1 0.86251
50112991553
2 0.87503
91593753565
4 1.15881
73344514852
6 1.22844
1526895331
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.47199
76290006591
3 0.58656
73124650332
6 1.22844
1526895331
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
...
...
mysql-test/main/vector.test
View file @
fe2b9746
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment