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

Unexpected plan for insert plain values #2482

Closed
zhongzc opened this issue Sep 25, 2023 · 0 comments
Closed

Unexpected plan for insert plain values #2482

zhongzc opened this issue Sep 25, 2023 · 0 comments
Assignees
Labels
C-bug Category Bugs

Comments

@zhongzc
Copy link
Contributor

zhongzc commented Sep 25, 2023

What type of bug is this?

Incorrect result

What subsystems are affected?

Frontend

What happened?

The plain values plan is wrapper with an unexpected MergeScan

What operating system did you use?

Ubuntu 22.04 x64

Relevant log output and stack trace

No response

How can we reproduce the bug?

mysql> create table t(ts timestamp time index default current_timestamp, v int32);
Query OK, 0 rows affected (0.01 sec)

mysql> explain insert into t(v) values (1)\G
*************************** 1. row ***************************
plan_type: logical_plan
     plan: Dml: op=[Insert] table=[t]
  Projection: CAST(column1 AS Int32) AS v
    MergeScan [is_placeholder=false]
1 row in set (0.01 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category Bugs
Projects
None yet
Development

No branches or pull requests

2 participants