SequelizeMeta structure incompatible with SingleStore/memsql
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, sql
Direzione di ricerca
Start at the SequelizeMeta table initialization that emits the shown CREATE TABLE statement and trace how its name column constraints are assembled for the memsql/SingleStore dialect. Verify the generated schema against the reported SingleStore error; done means SequelizeMeta initializes without the duplicate UNIQUE constraint while preserving the primary key behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What you are doing?
The table schema for the SequelizeMeta table is in conflict with the memsql/SingleStore dbms. The problematic query is the following table create:
CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`name` VARCHAR(255) NOT NULL UNIQUE , PRIMARY KEY (`name`));
which causes an error due to validation on the memsql side with name being the PK and also defined as UNIQUE explicitly
SQL Error [1706] [HY000]: Feature 'Multiple HASH indices on the same columns' is not supported by
SingleStore.
simply skipping the explicit UNIQUE constraint on name avoids this issue
CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`name` VARCHAR(255) NOT NULL , PRIMARY KEY (`name`));
Is there any reason not to remove the unique flag in the table definition? It is theoretically extraneous since it is the PK already.
What do you expect to happen?
I would expect the SequelizeMeta table to initialize successfully without intervention - or for there to be a way to configure my way out of the problem.
What is actually happening?
Error is being thrown due to validation on the dbms being confused that the key is also manually defined as unique.
SQL Error [1706] [HY000]: Feature 'Multiple HASH indices on the same columns' is not supported by
SingleStore.
Dialect: memsql/SingleStore
Database version: 8.1
Sequelize CLI version: 5.5.1
Sequelize version: 6.17.0
- Lingua principale
- JavaScript
- Stelle
- 2.6k
- Fork
- 524
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sequelize/cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Tutte le issue di sequelize/cli
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
getsentry/sentry-javascript#24577 · 1 commento ·
-
curation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
aemdemos/patients-stryker#253 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
clerk/javascript#9852 ·