MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getWithFillFieldValue

Function getWithFillFieldValue

src/Interpreters/InterpreterSelectQuery.cpp:1382–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1380
1381
1382static 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
1393static std::pair<Field, std::optional<IntervalKind>> getWithFillValueWithIntervalKind(const ASTPtr & node, const ContextPtr & context)
1394{

Callers 1

getWithFillDescriptionFunction · 0.85

Calls 3

ExceptionClass · 0.70
getNameMethod · 0.45

Tested by

no test coverage detected