copr: fix error when cast const Enum to any type
close tikv/tikv#14156, close pingcap/tidb#40341
copr: fix error when cast const Enum to any type
@@ -68,7 +68,8 @@ impl RpnExpressionBuilder {
| ExprType::MysqlTime
| ExprType::MysqlDuration
| ExprType::MysqlDecimal
- | ExprType::MysqlJson => Ok(true),
+ | ExprType::MysqlJson
+ | ExprType::MysqlEnum => Ok(true),
ExprType::ScalarFunc => Ok(false),
ExprType::ColumnRef => Ok(false),
_ => Err(other_err!("Unsupported expression type {:?}", c.get_tp())),
