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

Function CheckRelCommon

cpp/src/arrow/engine/substrait/relation_internal.cc:263–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262template <typename RelMessage>
263Status CheckRelCommon(const RelMessage& rel,
264 const ConversionOptions& conversion_options) {
265 if (rel.has_common()) {
266 if (rel.common().has_hint() &&
267 conversion_options.strictness == ConversionStrictness::EXACT_ROUNDTRIP) {
268 return Status::NotImplemented("substrait::RelCommon::Hint");
269 }
270 if (rel.common().has_advanced_extension()) {
271 return Status::NotImplemented("substrait::RelCommon::advanced_extension");
272 }
273 }
274 if (rel.has_advanced_extension()) {
275 return Status::NotImplemented("substrait AdvancedExtensions");
276 }
277 return Status::OK();
278}
279
280Status DiscoverFilesFromDir(const std::shared_ptr<fs::LocalFileSystem>& local_fs,
281 const std::string& dirpath,

Callers 1

FromProtoFunction · 0.85

Calls 2

NotImplementedFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected