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

Function test_fmt_sql

datafusion/physical-expr/src/expressions/not.rs:339–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337
338 #[test]
339 fn test_fmt_sql() -> Result<()> {
340 let schema = schema();
341
342 let expr = not(col("a", &schema)?)?;
343
344 let display_string = expr.to_string();
345 assert_eq!(display_string, "NOT a@0");
346
347 let sql_string = fmt_sql(expr.as_ref()).to_string();
348 assert_eq!(sql_string, "NOT a");
349
350 Ok(())
351 }
352
353 fn schema() -> SchemaRef {
354 static SCHEMA: LazyLock<SchemaRef> = LazyLock::new(|| {

Callers

nothing calls this directly

Calls 6

fmt_sqlFunction · 0.85
schemaFunction · 0.70
notFunction · 0.70
colFunction · 0.70
to_stringMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…