pingcap / pingcap/tidb

Support switch case expression

Open
#33,705 0 comments 0 reactions 0 assignees View on GitHub
sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

Currently, for the following expression:
`case b when 1 then 'c' when 2 then 'd' end`
It will be represented as
`case when b=1 then 'c' when b=2 then 'd' end`
after parsing AST node into planner expression.

This is not efficient, especially when b is a function, instead of a column.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.