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

Method alias

datafusion/core/src/dataframe/mod.rs:2415–2422  ·  view source on GitHub ↗

Apply an alias to the DataFrame. This method replaces the qualifiers of output columns with the given alias.

(self, alias: &str)

Source from the content-addressed store, hash-verified

2413 ///
2414 /// This method replaces the qualifiers of output columns with the given alias.
2415 pub fn alias(self, alias: &str) -> Result<DataFrame> {
2416 let plan = LogicalPlanBuilder::from(self.plan).alias(alias)?.build()?;
2417 Ok(DataFrame {
2418 session_state: self.session_state,
2419 plan,
2420 projection_requires_validation: self.projection_requires_validation,
2421 })
2422 }
2423
2424 /// Fill null values in specified columns with a given value
2425 /// If no columns are specified (empty vector), applies to all columns

Calls 1

buildMethod · 0.45