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

Function ensure_not_set

datafusion/sql/src/parser.rs:310–315  ·  view source on GitHub ↗
(field: &Option<T>, name: &str)

Source from the content-addressed store, hash-verified

308}
309
310fn ensure_not_set<T>(field: &Option<T>, name: &str) -> Result<(), DataFusionError> {
311 if field.is_some() {
312 parser_err!(format!("{name} specified more than once",))?
313 }
314 Ok(())
315}
316
317/// DataFusion SQL Parser based on [`sqlparser`]
318///

Callers 2

parse_copyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…