MCPcopy Create free account
hub / github.com/activeloopai/deeplake / is_count_star

Function is_count_star

cpp/deeplake_pg/extension_init.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70namespace {
71
72bool is_count_star(TargetEntry* node)
73{
74 if (node == nullptr || node->expr == nullptr || !IsA(node->expr, Aggref)) {
75 return false;
76 }
77
78 Aggref* agg = (Aggref*)node->expr;
79 return ((agg->aggfnoid == F_COUNT_ANY || agg->aggfnoid == F_COUNT_) && (agg->args == NIL || agg->aggstar));
80}
81
82void initialize_guc_parameters()
83{

Callers 1

foreachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected