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

Function GetInitialParseOptions

cpp/src/arrow/dataset/file_json.cc:132–136  ·  view source on GitHub ↗

Return the same parse options, but disable any options that could interfere with fragment inspection

Source from the content-addressed store, hash-verified

130// Return the same parse options, but disable any options that could interfere with
131// fragment inspection
132json::ParseOptions GetInitialParseOptions(json::ParseOptions options) {
133 options.explicit_schema = nullptr;
134 options.unexpected_field_behavior = json::UnexpectedFieldBehavior::InferType;
135 return options;
136}
137
138Result<std::shared_ptr<StructType>> ParseToStructType(
139 std::string_view data, const json::ParseOptions& parse_options, MemoryPool* pool) {

Callers 2

StateMethod · 0.85
DoInspectFragmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected