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

Function isNullConstant

src/Analyzer/Resolve/resolveFunction.cpp:101–106  ·  view source on GitHub ↗

Checks if node is a NULL constant

Source from the content-addressed store, hash-verified

99
100/// Checks if node is a NULL constant
101static bool isNullConstant(const QueryTreeNodePtr & node)
102{
103 if (const auto * const_node = node->as<ConstantNode>())
104 return const_node->getValue().isNull();
105 return false;
106}
107
108/// Creates a NOT function node wrapping the given node (caller must resolve it)
109static QueryTreeNodePtr createNotWrapper(QueryTreeNodePtr node)

Callers 2

convertTupleToArrayMethod · 0.85
resolveFunctionMethod · 0.85

Calls 2

isNullMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected