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

Function isEmptyNestedWithAny

src/c_api/value.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using namespace lbug::common;
14
15static bool isEmptyNestedWithAny(const Value& value) {
16 if (!value.getDataType().containsAny()) {
17 return false;
18 }
19 switch (value.getDataType().getPhysicalType()) {
20 case PhysicalTypeID::LIST:
21 case PhysicalTypeID::ARRAY:
22 case PhysicalTypeID::STRUCT:
23 return NestedVal::getChildrenSize(const_cast<Value*>(&value)) == 0;
24 default:
25 return false;
26 }
27}
28
29static bool tryGetMaxParameterType(const LogicalType& left, const LogicalType& right,
30 LogicalType& result) {

Callers 2

canCopyValueForNestedFunction · 0.85
copyValueForNestedFunction · 0.85

Calls 3

getDataTypeMethod · 0.80
containsAnyMethod · 0.45
getPhysicalTypeMethod · 0.45

Tested by

no test coverage detected