select sum(case when 1 then a end) from t group by a
causes schema change
#19387
Labels
challenge-program
component/expression
invalid
priority/P1
The issue has P1 priority.
severity/critical
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Milestone
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
This bug can be fixed by #19083.
2. What did you expect to see? (Required)
decimal(16,2)
inshow create table
, that is, the schema won't change after executing the SQL.3. What did you see instead (Required)
decimal(16,2)
inshow create table
, that is, the schema changes after executing the SQL.Because of that, the index is wrong because it does not match the schema.
4. What is your TiDB version? (Required)
v3.0.16, master
SIG slack channel
#sig-exec
Score
Mentor
The text was updated successfully, but these errors were encountered: