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

Method SetParseOptions

cpp/src/arrow/json/reader.cc:94–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void SetParseOptions(ParseOptions options) {
95 parse_options_ = std::move(options);
96 if (parse_options_.explicit_schema) {
97 conversion_type_ = struct_(parse_options_.explicit_schema->fields());
98 } else {
99 parse_options_.unexpected_field_behavior = UnexpectedFieldBehavior::InferType;
100 conversion_type_ = struct_({});
101 }
102 promotion_graph_ =
103 parse_options_.unexpected_field_behavior == UnexpectedFieldBehavior::InferType
104 ? GetPromotionGraph()
105 : nullptr;
106 }
107
108 void SetSchema(std::shared_ptr<Schema> explicit_schema,
109 UnexpectedFieldBehavior unexpected_field_behavior) {

Callers

nothing calls this directly

Calls 3

struct_Function · 0.85
GetPromotionGraphFunction · 0.85
fieldsMethod · 0.45

Tested by

no test coverage detected