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]: desc temp table is empty #10300

Open
1 task done
Tracked by #7889
dengn opened this issue Jun 29, 2023 · 9 comments
Open
1 task done
Tracked by #7889

[Bug]: desc temp table is empty #10300

dengn opened this issue Jun 29, 2023 · 9 comments
Assignees
Labels
area/compatibility kind/bug Something isn't working priority/p1 Medium priority feature that should be implemented in this version severity/s1 High impact: Logical errors or data errors that must occur team/c2
Milestone

Comments

@dengn
Copy link
Contributor

dengn commented Jun 29, 2023

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

MO behavior:

mysql> desc temp_employees;
ERROR 1146 (HY000): no such table tenant1.temp_employees
mysql> CREATE TEMPORARY TABLE temp_employees (     employee_id INT AUTO_INCREMENT,       first_name VARCHAR(50),               last_name VARCHAR(50),                email VARCHAR(100),                   PRIMARY KEY (employee_id)         );Query OK, 0 rows affected (0.14 sec)
mysql> desc temp_employees;
Empty set (0.15 sec)

MySQL behavior:

mysql> desc temp_employees;
ERROR 1146 (42S02): Table 'tenant1.temp_employees' doesn't exist
mysql> CREATE TEMPORARY TABLE temp_employees (
    ->     employee_id INT AUTO_INCREMENT,  -- ID
    ->     first_name VARCHAR(50),          -- 
    ->     last_name VARCHAR(50),           -- 
    ->     email VARCHAR(100),              -- 
    ->     PRIMARY KEY (employee_id)        --  'employee_id' 
    -> );
Query OK, 0 rows affected (0.03 sec)

mysql> desc temp_employees;                                                                                                      
+-------------+--------------+------+-----+---------+----------------+
| Field       | Type         | Null | Key | Default | Extra          |
+-------------+--------------+------+-----+---------+----------------+
| employee_id | int          | NO   | PRI | NULL    | auto_increment |
| first_name  | varchar(50)  | YES  |     | NULL    | NULL           |
| last_name   | varchar(50)  | YES  |     | NULL    | NULL           |
| email       | varchar(100) | YES  |     | NULL    | NULL           |
+-------------+--------------+------+-----+---------+----------------+
4 rows in set (0.01 sec)

Expected Behavior

No response

Steps to Reproduce

No response

Additional information

No response

@dengn dengn added kind/bug Something isn't working needs-triage severity/s1 High impact: Logical errors or data errors that must occur labels Jun 29, 2023
@dengn dengn added this to the 1.0.0 milestone Jun 29, 2023
@daviszhen daviszhen assigned YANGGMM and unassigned matrix-meow Jun 29, 2023
@daviszhen
Copy link
Contributor

@YANGGMM 先看下

@YANGGMM
Copy link
Contributor

YANGGMM commented Jul 3, 2023

there is no info in mo_columns about temporary table
image

@YANGGMM
Copy link
Contributor

YANGGMM commented Jul 3, 2023

have associated with @jensenojs, need waitting to rewrite

@YANGGMM YANGGMM assigned jensenojs and unassigned YANGGMM Jul 3, 2023
@jensenojs
Copy link
Contributor

临时表的引擎用的的memoryengine不再维护已经很久了,后面需要很大的重构,0.8结束我应该就会开始干这个事情。

@jensenojs
Copy link
Contributor

后面要和产品对一下要不要做

@jensenojs
Copy link
Contributor

not process

@florashi181 florashi181 modified the milestones: 1.0.0, 1.1.0 Aug 23, 2023
@sukki37
Copy link
Contributor

sukki37 commented Aug 29, 2023

depend on #7889

@ouyuanning ouyuanning modified the milestones: 1.1.0, Backlog Sep 21, 2023
@ouyuanning ouyuanning assigned ouyuanning and unassigned jensenojs Dec 5, 2023
@ouyuanning ouyuanning assigned reusee and unassigned ouyuanning Dec 5, 2023
@ouyuanning ouyuanning modified the milestones: Backlog, 1.2.0 Dec 12, 2023
@ouyuanning ouyuanning removed this from the 1.2.0 milestone Jan 10, 2024
@ouyuanning ouyuanning added this to the Backlog milestone Jan 10, 2024
@yangj1211
Copy link
Contributor

show create table 查看临时表结构也与mysql行为不一致:

image image

@dengn dengn modified the milestones: Backlog, 1.2.1 Apr 26, 2024
@aressu1985
Copy link
Contributor

临时表的需求,优先级较低,delay到1.3.0

@aressu1985 aressu1985 modified the milestones: 1.2.1, 1.3.0 May 30, 2024
@sukki37 sukki37 added the priority/p1 Medium priority feature that should be implemented in this version label Oct 14, 2024
@sukki37 sukki37 modified the milestones: 2.0.0, Backlog Oct 14, 2024
@sukki37 sukki37 added kind/compatibility The compatibility with mysql 8.0 should be discussed further. and removed mysql-compability labels Oct 19, 2024
@sukki37 sukki37 added area/compatibility and removed kind/compatibility The compatibility with mysql 8.0 should be discussed further. labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compatibility kind/bug Something isn't working priority/p1 Medium priority feature that should be implemented in this version severity/s1 High impact: Logical errors or data errors that must occur team/c2
Projects
None yet
Development

No branches or pull requests