superset icon indicating copy to clipboard operation
superset copied to clipboard

[sqllab] Multiple Statement Queries

Open chebu opened this issue 9 years ago • 3 comments

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

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

Superset version

0.15.4

Expected results

Is there a way to run multiple statement queries in Superset? For example "SET @x= (SELECT count(*) FROM table_a) ; SELECT column_1/@x, column_2 FROM table_b" When I try to run something similar I get "(_mysql_exceptions.ProgrammingError) (2014, "Commands out of sync; you can't run this command now")"

Actual results

Steps to reproduce

chebu avatar Feb 11 '17 21:02 chebu

after establish the connection between kylin and superset, i am trying to use sqllab for fetching the table from kylin to do visualization in superset! here is my sql query: SELECT * FROM KYLIN_SALES

i am getting this error, pls help me , thanks in advance!!:

{"status": "failed", "query_id": 21, "error_essage": "Error when requesting: "query", exception: "Project name should not be empty.""} screenshot from 2017-08-09 16 03 03

kumarit avatar Aug 09 '17 14:08 kumarit

@kumarit this seems unrelated to this issue. You should open another issue. Also most likely related to you SQLAlchemy connection / configuration

mistercrunch avatar Aug 09 '17 15:08 mistercrunch

This response is from kylin REST api, that means you must specify Kylin project name when you query.

Please use this Sqlalchemy Dialect:

https://github.com/Kyligence/kylinpy

zhaoyongjie avatar Jan 02 '18 03:01 zhaoyongjie