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

SQL update statement doesn't work in Sql Lab #6706

Closed
aboganas opened this issue Jan 16, 2019 · 4 comments
Closed

SQL update statement doesn't work in Sql Lab #6706

aboganas opened this issue Jan 16, 2019 · 4 comments
Labels
!deprecated-label:bug Deprecated label - Use #bug instead sqllab Namespace | Anything related to the SQL Lab

Comments

@aboganas
Copy link
Contributor

Make sure these boxes are checked before submitting your issue - thank you!

  • [*] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [*] I have reproduced the issue with at least the latest released version of superset.
  • [*] I have checked the issue tracker for the same issue and I haven't found one similar.

Superset version

LATEST MASTER

Expected results

UPDATE statement to work in SqlLap

Actual results

I get the message The query returned no data without errors but changes not reflected in the table

Steps to reproduce

run similar statement
UPDATE table1 SET column1 = "test";

note all other statements work fine such as ALTER, DROP ....etc except UPDATE

@kristw kristw added !deprecated-label:bug Deprecated label - Use #bug instead sqllab Namespace | Anything related to the SQL Lab labels Jan 17, 2019
@john-bodley
Copy link
Member

@aboganas I believe this is due to the transaction isolation level of the database.

@aboganas
Copy link
Contributor Author

I didn't change anything on the database, it only stopped working with the latest master. I also tried with mysql, MariaDB, and sqlite all show same behavior

@aboganas
Copy link
Contributor Author

Here is even more weird behavior.
If I run UPDATE and SELECT statements together, it shows the values are updated, if I rerun the SELECT statement it shows the values are not updated.
Here is an example
sqllab

@mistercrunch
Copy link
Member

COMMIT;

@aboganas aboganas closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead sqllab Namespace | Anything related to the SQL Lab
Projects
None yet
Development

No branches or pull requests

4 participants