| 1380 | |
| 1381 | |
| 1382 | static std::pair<Field, DataTypePtr> getWithFillFieldValue(const ASTPtr & node, ContextPtr context) |
| 1383 | { |
| 1384 | auto field_type = evaluateConstantExpression(node, context); |
| 1385 | |
| 1386 | if (!isColumnedAsNumber(field_type.second)) |
| 1387 | throw Exception(ErrorCodes::INVALID_WITH_FILL_EXPRESSION, |
| 1388 | "Illegal type {} of WITH FILL expression, must be numeric type", field_type.second->getName()); |
| 1389 | |
| 1390 | return field_type; |
| 1391 | } |
| 1392 | |
| 1393 | static std::pair<Field, std::optional<IntervalKind>> getWithFillValueWithIntervalKind(const ASTPtr & node, const ContextPtr & context) |
| 1394 | { |
no test coverage detected