You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "lssdo12 (via GitHub)" <gi...@apache.org> on 2023/04/22 03:07:17 UTC

[GitHub] [superset] lssdo12 opened a new issue, #23781: In SQL Server, superset supports temporary tables in SQL lab, but not in chart,(Incorrect syntax near the keyword 'INTO')

lssdo12 opened a new issue, #23781:
URL: https://github.com/apache/superset/issues/23781

   A clear and concise description of what the bug is.
   
   #### How to reproduce the bug
   
   - Using temporary tables in SQL lab can return data
     ```
     SELECT
       *
     INTO
       #temp
     FROM
       ptype
     
     SELECT * FROM #temp
     ```
   
   - Then save dataset(save and explore), add any columns to DIMENSIONS, click 'CREATE CHART'
   
   ### Expected results
   
   use temp table in Chart,
   return data as in SQL Lab
   
   ### Actual results
   
   - Error occurred when I created a Chart from Datasets
   
     ```
     Unexpected error
     Error: (156, b"Incorrect syntax near the keyword 'INTO'.DB-Lib error message 20018, severity 15:\nGeneral SQL Server error: Check messages from the SQL Server\nDB-Lib error message 20018, severity 15:\nGeneral SQL Server error: Check messages from the SQL Server\n")
     ```
   
   #### Screenshots
   
   - This is running in Sql Lab and the results can be obtained
   ![issue1](https://user-images.githubusercontent.com/59727014/233758109-34812c09-4546-4d90-b41b-4be15e95293a.png)
   
   - Error occurred when I created a Chart from Datasets
   
   ![issue2](https://user-images.githubusercontent.com/59727014/233758149-cccf0c99-59ac-4775-80fc-e9eceb4114b9.png)
   
   
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: Chrome newest
   - superset version: Pulled from the docker on 2023-04-21
   - python version: `python --version`
   - node.js version: `node -v`
   - any feature flags active:
   
   ### Checklist
   
   Make sure to follow these steps 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.
   
   ### Additional context
   
   I really need to use temporary tables to improve my query performance
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] In SQL Server, superset supports temporary tables in SQL lab, but not in chart,(Incorrect syntax near the keyword 'INTO') [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #23781:
URL: https://github.com/apache/superset/issues/23781#issuecomment-1971703199

   Is this still an issue in 3.x? We no longer support 2.x or prior. I think we just need queries to be a single statement, so we don't ONLY run the last query, rather than the two in sequence like a workbook or something. CC @justinpark @john-bodley to make sure I'm not misinterpreting.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] benjaminlhai commented on issue #23781: In SQL Server, superset supports temporary tables in SQL lab, but not in chart,(Incorrect syntax near the keyword 'INTO')

Posted by "benjaminlhai (via GitHub)" <gi...@apache.org>.
benjaminlhai commented on issue #23781:
URL: https://github.com/apache/superset/issues/23781#issuecomment-1544905642

   I am also experiencing this issue 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org