superset icon indicating copy to clipboard operation
superset copied to clipboard

Integrity error, probably unique constraint (two mysql databases with same tables)

Open facePlanted opened this issue 6 years ago • 8 comments

With MySQL, after adding the second database and trying to add tables, I'm getting: Integrity error, probably unique constraint

I've tried also with db.table and db:table and also with schema.

Is having two (or multiple) databases with the tables named in the same way supported in superset ?

facePlanted avatar Dec 19 '19 14:12 facePlanted

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.79. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Dec 19 '19 14:12 issue-label-bot[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Feb 17 '20 14:02 stale[bot]

any update pls?

ivanmartos avatar Feb 20 '20 15:02 ivanmartos

Honestly, it sounds incredible that it's not possible to have the same table name with two different databases. The tool must have some qualities but between this and the confusing interface, I'm done with it.

FredericLatour avatar Feb 26 '20 11:02 FredericLatour

A workaround is to create a View, for the subsequent tables, so they are unique.

mprior10 avatar Apr 10 '20 16:04 mprior10

it's probably impossible to remove constraints on some databases. There's some comment from previous issues https://github.com/apache/incubator-superset/issues/5557#issuecomment-410306136. Hope that help

lilykuang avatar May 21 '20 22:05 lilykuang

This should help https://github.com/apache/incubator-superset/pull/9882

mistercrunch avatar May 22 '20 04:05 mistercrunch

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Jul 25 '20 04:07 stale[bot]