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

Function tryGetMaxParameterType

src/c_api/value.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static bool tryGetMaxParameterType(const LogicalType& left, const LogicalType& right,
30 LogicalType& result) {
31 if (left.getLogicalTypeID() == LogicalTypeID::STRING ||
32 right.getLogicalTypeID() == LogicalTypeID::STRING) {
33 result = LogicalType::STRING();
34 return true;
35 }
36 return LogicalTypeUtils::tryGetMaxLogicalType(left, right, result);
37}
38
39static bool canCopyValueForNested(const Value& value, const LogicalType& targetType) {
40 if (value.getDataType() == targetType) {

Callers 2

lbug_value_create_listFunction · 0.85
lbug_value_create_mapFunction · 0.85

Calls 1

getLogicalTypeIDMethod · 0.80

Tested by

no test coverage detected