| 1263 | |
| 1264 | template<typename T> |
| 1265 | void AggregateFunctions::Max(FunctionContext*, const T& src, T* dst) { |
| 1266 | if (src.is_null) return; |
| 1267 | if (dst->is_null || src.val > dst->val) *dst = src; |
| 1268 | } |
| 1269 | |
| 1270 | void AggregateFunctions::InitNullString(FunctionContext* c, StringVal* dst) { |
| 1271 | dst->is_null = true; |
no test coverage detected