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

Method Parse

cpp/src/arrow/dataset/partition.cc:252–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252Result<compute::Expression> KeyValuePartitioning::Parse(const std::string& path) const {
253 std::vector<compute::Expression> expressions;
254
255 ARROW_ASSIGN_OR_RAISE(auto parsed, ParseKeys(path));
256 for (const Key& key : parsed) {
257 ARROW_ASSIGN_OR_RAISE(auto expr, ConvertKey(key));
258 if (expr == compute::literal(true)) continue;
259 expressions.push_back(std::move(expr));
260 }
261
262 return and_(std::move(expressions));
263}
264
265Result<PartitionPathFormat> KeyValuePartitioning::Format(
266 const compute::Expression& expr) const {

Callers 5

GetOrderedColumnNamesFunction · 0.45
ParseToStructTypeFunction · 0.45
AssertParseErrorMethod · 0.45
EXPECT_OK_AND_ASSIGNFunction · 0.45

Calls 3

and_Function · 0.85
push_backMethod · 0.80
literalFunction · 0.50

Tested by 2

AssertParseErrorMethod · 0.36
EXPECT_OK_AND_ASSIGNFunction · 0.36