MCPcopy Create free account
hub / github.com/apache/datafusion / parse_file_format

Method parse_file_format

datafusion/sql/src/parser.rs:1148–1154  ·  view source on GitHub ↗

Parses the set of valid formats

(&mut self)

Source from the content-addressed store, hash-verified

1146
1147 /// Parses the set of valid formats
1148 fn parse_file_format(&mut self) -> Result<String, DataFusionError> {
1149 let token = self.parser.next_token();
1150 match &token.token {
1151 Token::Word(w) => parse_file_type(&w.value),
1152 _ => self.expected("one of ARROW, PARQUET, NDJSON, or CSV", &token),
1153 }
1154 }
1155
1156 /// Parses (key value) style options into a map of String --> [`Value`].
1157 ///

Callers 2

parse_copyMethod · 0.80

Calls 2

parse_file_typeFunction · 0.85
expectedMethod · 0.80

Tested by

no test coverage detected