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

bug: create temporary..select...from,Syntax not supported #646

Closed
2 of 3 tasks
shangyanwen opened this issue Oct 8, 2022 · 2 comments
Closed
2 of 3 tasks

bug: create temporary..select...from,Syntax not supported #646

shangyanwen opened this issue Oct 8, 2022 · 2 comments
Labels
A-bug Something isn't working

Comments

@shangyanwen
Copy link
Contributor

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the problem

CREATE TEMPORARY TABLE Temp1 SELECT * from t1;

ERROR 6 (HY000): The query includes syntax that is not supported by the storage engine. Either restructure the query with supported syntax, or enable the MySQL core::Query Path in config file to execute the query with reduced performance.

Expected behavior

Syntax support, can be created successfully

How To Reproduce

CREATE TABLE t1 (c1 INT)engine=tianmu;
INSERT INTO  t1 VALUES(1);
CREATE TEMPORARY TABLE Temp1 SELECT * from t1;
SELECT * FROM Temp1;

Environment

./mysqld Ver 5.7.36_v1.0.1_beta-StoneDB for Linux on x86_64 (build-)
build information as follow:
Repository address: https://github.com/stoneatom/stonedb.git:stonedb-5.7-dev
Branch name: stonedb-5.7-dev
Last commit ID: https://github.com/stoneatom/stonedb/commit/208f79d80bae1667d147e0713950317c9ca6c6b9
Last commit time: Date: Sat Sep 17 16:19:42 2022 +0800
Build time: Date: Sat Sep 17 17:59:04 CST 2022

Are you interested in submitting a PR to solve the problem?

  • Yes, I will!
@shangyanwen shangyanwen added the A-bug Something isn't working label Oct 8, 2022
@shangyanwen shangyanwen added this to the stonedb_5.7_v1.0.1 milestone Oct 9, 2022
@duanfuxiang0
Copy link
Contributor

now tianmu not support insert_select; turn on tianmu_ini_allowmysqlquerypath=1 in my.cnf, use mysql query handler; problem can be solved

@shangyanwen
Copy link
Contributor Author

Verification by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-bug Something isn't working
Projects
Development

No branches or pull requests

2 participants