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

Method assertSingleUnit

src/Common/CalendarTimeInterval.cpp:77–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void CalendarTimeInterval::assertSingleUnit() const
78{
79 if (seconds && months)
80 throw Exception(ErrorCodes::BAD_ARGUMENTS, "Interval shouldn't contain both calendar units and clock units (e.g. months and days)");
81}
82
83void CalendarTimeInterval::assertPositive() const
84{

Callers 1

parseImplMethod · 0.80

Calls 1

ExceptionClass · 0.70

Tested by

no test coverage detected