[][src]Module datafusion::prelude

A "prelude" for users of the datafusion crate.

Like the standard library's prelude, this module simplifies importing of common items. Unlike the standard prelude, the contents of this module must be imported manually:

use datafusion::prelude::*;

Re-exports

pub use crate::dataframe::DataFrame;
pub use crate::execution::context::ExecutionConfig;
pub use crate::execution::context::ExecutionContext;
pub use crate::physical_plan::csv::CsvReadOptions;

Enums

JoinType

Join type

Partitioning

Logical partitioning schemes supported by the repartition operator.

Functions

array

returns an array of fixed size with each argument on it.

avg

Create an expression to represent the avg() aggregate function

col

Create a column expression based on a column name

concat

returns the concatenation of string expressions

count

Create an expression to represent the count() aggregate function

create_udf

Creates a new UDF with a specific signature and specific return type. This is a helper function to create a new UDF. The function create_udf returns a subset of all possible ScalarFunction:

in_list

Create an in_list expression

length

returns the length of a string in bytes

lit

Create a literal expression

lower
ltrim
max

Create an expression to represent the max() aggregate function

md5
min

Create an expression to represent the min() aggregate function

rtrim
sha224
sha256
sha384
sha512
sum

Create an expression to represent the sum() aggregate function

trim
upper