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

- Error occurred when I created a Chart from Datasets

### 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]