MySQLOnRocksDB/mysql-5.6
forked from facebook/mysql-5.6

Loading…
Unique secondary keys contain duplicate columns #66
Closed
spetrunia opened this Issue
· 1 comment
Collaborator
spetrunia
commented
Collaborator
spetrunia
commented
|
|
spetrunia |
Issue #66: Unique secondary keys contain duplicate columns
…
Summary: Fixed it: Now, a Unique secondary index has a suffix of PK columns, but it includes only columns that are not explicitly present in the index definition (InnoDB does the same internally). Test Plan: Run mtr Reviewers: hermanlee4, maykov, jtolmer, yoshinorim Differential Revision: https://reviews.facebook.net/D38619 |
4d5f54a
|
|
|
spetrunia |
Issue #66: Unique secondary keys contain duplicate columns
…
Summary: Fixed it: Now, a Unique secondary index has a suffix of PK columns, but it includes only columns that are not explicitly present in the index definition (InnoDB does the same internally). Test Plan: Run mtr Reviewers: hermanlee4, maykov, jtolmer, yoshinorim Differential Revision: https://reviews.facebook.net/D38619 |
931b8f4
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider an example:
Putting a breakpoint in ha_rocksdb::index_read_map, one can find that:
get_m_key_parts()==4, because the unique key has these key parts:
pk1,col1,extended(pk1,pk2)
pk1 should not be there.