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

Function read_memory_macro

datafusion-examples/examples/dataframe/dataframe.rs:182–196  ·  view source on GitHub ↗

Use the DataFrame API to: 1. Read in-memory data.

()

Source from the content-addressed store, hash-verified

180/// Use the DataFrame API to:
181/// 1. Read in-memory data.
182async fn read_memory_macro() -> Result<()> {
183 // create a DataFrame using macro
184 let df = dataframe!(
185 "a" => ["a", "b", "c", "d"],
186 "b" => [1, 10, 10, 100]
187 )?;
188 // print the results
189 df.show().await?;
190
191 // create empty DataFrame using macro
192 let df_empty = dataframe!()?;
193 df_empty.show().await?;
194
195 Ok(())
196}
197
198/// Use the DataFrame API to:
199/// 1. Write out a DataFrame to a table

Callers 1

dataframe_exampleFunction · 0.85

Calls 1

showMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…