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

Function MakeWriteDeclarationFactory

cpp/src/arrow/engine/substrait/serde.cc:134–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134DeclarationFactory MakeWriteDeclarationFactory(
135 const WriteOptionsFactory& write_options_factory) {
136 return [&write_options_factory](
137 acero::Declaration input,
138 std::vector<std::string> names) -> Result<acero::Declaration> {
139 std::shared_ptr<dataset::WriteNodeOptions> options = write_options_factory();
140 if (options == nullptr) {
141 return Status::Invalid("write options factory is exhausted");
142 }
143 return acero::Declaration::Sequence(
144 {std::move(input), {"write", std::move(*options)}});
145 };
146}
147
148Result<std::vector<acero::Declaration>> DeserializePlans(
149 const Buffer& buf, DeclarationFactory declaration_factory,

Callers 1

DeserializePlansFunction · 0.85

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected