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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to