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

Function verified_stmt

datafusion/sql/src/parser.rs:2026–2028  ·  view source on GitHub ↗

Ensures that `sql` parses as a single [Statement], and that re-serializing the parse result produces the same `sql` string (is not modified after a serialization round-trip).

(sql: &str)

Source from the content-addressed store, hash-verified

2024 /// re-serializing the parse result produces the same `sql`
2025 /// string (is not modified after a serialization round-trip).
2026 fn verified_stmt(sql: &str) -> Statement {
2027 one_statement_parses_to(sql, sql)
2028 }
2029
2030 #[test]
2031 /// Checks the recursion limit works for sql queries

Callers 1

copy_to_query_to_tableFunction · 0.85

Calls 1

one_statement_parses_toFunction · 0.85

Tested by 1

copy_to_query_to_tableFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…