Enhancement
For now tiflash truncate use ClickHouse code, the first argument cannot be Decimal(check
|
//{tipb::ScalarFuncSig::TruncateDecimal, "cast"}, |
), and the second argument can only be constant(check
|
if (!scale_column.isColumnConst()) |
). (which is ok for
floor/ceil because they only support one argument, but not ok for
truncate, because it support two arguments).