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

Function display_all_functions

datafusion-cli/src/functions.rs:209–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207}
208
209pub fn display_all_functions() -> Result<()> {
210 println!("Available help:");
211 let array = StringArray::from(
212 ALL_FUNCTIONS
213 .iter()
214 .map(|f| format!("{f}"))
215 .collect::<Vec<String>>(),
216 );
217 let schema = Schema::new(vec![Field::new("Function", DataType::Utf8, false)]);
218 let batch = RecordBatch::try_new(Arc::new(schema), vec![Arc::new(array)])?;
219 println!("{}", pretty_format_batches(&[batch]).unwrap());
220 Ok(())
221}
222
223/// PARQUET_META table function
224#[derive(Debug)]

Callers 1

executeMethod · 0.85

Calls 3

newFunction · 0.85
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…