MCPcopy Create free account
hub / github.com/apache/arrow / compute___expr__get_field_ref_name

Function compute___expr__get_field_ref_name

r/src/expression.cpp:55–65  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

53
54// [[arrow::export]]
55std::string compute___expr__get_field_ref_name(
56 const std::shared_ptr<compute::Expression>& x) {
57 if (auto field_ref = x->field_ref()) {
58 // Exclude nested field refs because we only use this to determine if we have simple
59 // field refs
60 if (!field_ref->IsNested()) {
61 return *field_ref->name();
62 }
63 }
64 return "";
65}
66
67// [[arrow::export]]
68std::vector<std::string> compute___expr__field_names_in_expression(

Calls 2

field_refMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected