MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / validateType

Method validateType

src/common/types/value/value.cpp:933–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931}
932
933void Value::validateType(LogicalTypeID targetTypeID) const {
934 if (dataType.getLogicalTypeID() == targetTypeID) {
935 return;
936 }
937 throw BinderException(std::format("{} has data type {} but {} was expected.", toString(),
938 dataType.toString(), LogicalTypeUtils::toString(targetTypeID)));
939}
940
941bool Value::hasNoneNullChildren() const {
942 for (auto i = 0u; i < childrenSize; ++i) {

Callers 2

getStringValFunction · 0.45
setContextMethod · 0.45

Calls 3

getLogicalTypeIDMethod · 0.80
toStringFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected