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
a059f514
Commit
a059f514
authored
8 months ago
by
Sergey Vojtovich
Committed by
Sergei Golubchik
5 months ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable VECTOR indexes with partitioned tables
parent
3edaeafc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
0 deletions
+49
-0
mysql-test/main/vector_partition.result
mysql-test/main/vector_partition.result
+19
-0
mysql-test/main/vector_partition.test
mysql-test/main/vector_partition.test
+25
-0
sql/sql_table.cc
sql/sql_table.cc
+5
-0
No files found.
mysql-test/main/vector_partition.result
0 → 100644
View file @
a059f514
# Vector indexes do not support partitioned tables
create table t1 (id int auto_increment primary key,
v blob not null, vector index (v))
partition by key(id) partitions 2;
ERROR HY000: Partitioned tables do not support VECTOR
create table t1 (id int auto_increment primary key,
v blob not null)
partition by key(id) partitions 2;
alter table t1 add vector index(v);
ERROR HY000: Partitioned tables do not support VECTOR
create vector index i on t1(v);
ERROR HY000: Partitioned tables do not support VECTOR
drop table t1;
create table t1 (id int auto_increment primary key,
v blob not null, vector index(v));
alter table t1 partition by key(id) partitions 2;
ERROR HY000: Partitioned tables do not support VECTOR
drop table t1;
db.opt
This diff is collapsed.
Click to expand it.
mysql-test/main/vector_partition.test
0 → 100644
View file @
a059f514
--
source
include
/
have_partition
.
inc
--
echo
# Vector indexes do not support partitioned tables
--
error
ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING
create
table
t1
(
id
int
auto_increment
primary
key
,
v
blob
not
null
,
vector
index
(
v
))
partition
by
key
(
id
)
partitions
2
;
create
table
t1
(
id
int
auto_increment
primary
key
,
v
blob
not
null
)
partition
by
key
(
id
)
partitions
2
;
--
error
ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING
alter
table
t1
add
vector
index
(
v
);
--
error
ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING
create
vector
index
i
on
t1
(
v
);
drop
table
t1
;
create
table
t1
(
id
int
auto_increment
primary
key
,
v
blob
not
null
,
vector
index
(
v
));
--
error
ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING
alter
table
t1
partition
by
key
(
id
)
partitions
2
;
drop
table
t1
;
let
$datadir
=
`select @@datadir`
;
list_files
$datadir
/
test
;
This diff is collapsed.
Click to expand it.
sql/sql_table.cc
View file @
a059f514
...
...
@@ -3244,6 +3244,11 @@ mysql_prepare_create_table_finalize(THD *thd, HA_CREATE_INFO *create_info,
key_number
--
;
// Skip this key
continue
;
case
Key
:
:
VECTOR
:
if
(
thd
->
work_part_info
)
{
my_error
(
ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING
,
MYF
(
0
),
"VECTOR"
);
DBUG_RETURN
(
TRUE
);
}
if
(
key
->
key_create_info
.
algorithm
==
HA_KEY_ALG_UNDEF
)
key
->
key_create_info
.
algorithm
=
HA_KEY_ALG_VECTOR
;
break
;
...
...
This diff is collapsed.
Click to expand it.
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