Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL as Backend with Druid as datasource #518

Closed
lony25 opened this issue May 26, 2016 · 3 comments
Closed

MySQL as Backend with Druid as datasource #518

lony25 opened this issue May 26, 2016 · 3 comments

Comments

@lony25
Copy link

lony25 commented May 26, 2016

When using mysql as URI scheme in caravel_config.py, everything works fine.
I could add druid cluster. When I try to refresh druid metadata, it throws following error:

sqlalchemy.exc.InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (_mysql_exceptions.IntegrityError) (1452, 'Cannot add or update a child row: a foreign key constraint fails (caravel.columns, CONSTRAINT columns_ibfk_1 FOREIGN KEY (column_name) REFERENCES datasources (datasource_name))')

On debugging, I figured out that while calling sync_to_db, DruidDatasource is trying to modify DruidColumn which I understand is not allowed.

Could some one help me if I am doing something wrong or is it a valid issue.

OS: Ubuntu 14.04
Druid: 0.9
Caravel: 0.9

Steps to reproduce.

  1. Change URI scheme to mysql as instructed in tutorial. Follow tutorial.
  2. Add Druid cluster.
  3. Do Druid Refresh Metadata.
@x4base
Copy link
Contributor

x4base commented May 27, 2016

Should be related to #466

@kkalyan
Copy link
Contributor

kkalyan commented Jun 20, 2016

I ran into same issue, temporary workaround is to remove foreign key

alter table columns drop foreign key columns_ibfk_1;

@xrmx
Copy link
Contributor

xrmx commented Aug 9, 2016

Closing as duplicate of #466

@xrmx xrmx closed this as completed Aug 9, 2016
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
* feat: adding style package for Emotion support

* importing supersetTheme

* using theme (directly)

* updating encoder with direct font implementation

* fixing query bug!

* remove groupby

* using theme via Emotion for type styles - various TS-driven refactoring

* bug: whoops, this file is effectively a duplicate!

* cleaning up package paths.

* another relative path

* nixing debug junk
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
* feat: adding style package for Emotion support

* importing supersetTheme

* using theme (directly)

* updating encoder with direct font implementation

* fixing query bug!

* remove groupby

* using theme via Emotion for type styles - various TS-driven refactoring

* bug: whoops, this file is effectively a duplicate!

* cleaning up package paths.

* another relative path

* nixing debug junk
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
* feat: adding style package for Emotion support

* importing supersetTheme

* using theme (directly)

* updating encoder with direct font implementation

* fixing query bug!

* remove groupby

* using theme via Emotion for type styles - various TS-driven refactoring

* bug: whoops, this file is effectively a duplicate!

* cleaning up package paths.

* another relative path

* nixing debug junk
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
* feat: adding style package for Emotion support

* importing supersetTheme

* using theme (directly)

* updating encoder with direct font implementation

* fixing query bug!

* remove groupby

* using theme via Emotion for type styles - various TS-driven refactoring

* bug: whoops, this file is effectively a duplicate!

* cleaning up package paths.

* another relative path

* nixing debug junk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants