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

Function ToProtoGetDepthFirstNames

cpp/src/arrow/engine/substrait/type_internal.cc:544–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542
543namespace {
544void ToProtoGetDepthFirstNames(const FieldVector& fields,
545 google::protobuf::RepeatedPtrField<std::string>* names) {
546 for (const auto& field : fields) {
547 *names->Add() = field->name();
548
549 if (field->type()->id() == Type::STRUCT) {
550 ToProtoGetDepthFirstNames(field->type()->fields(), names);
551 }
552 }
553}
554} // namespace
555
556Result<std::unique_ptr<substrait::NamedStruct>> ToProto(

Callers 1

ToProtoFunction · 0.85

Calls 5

AddMethod · 0.45
nameMethod · 0.45
idMethod · 0.45
typeMethod · 0.45
fieldsMethod · 0.45

Tested by

no test coverage detected