Apache DataFusion SQL Query Engine
Minor: Update `with_column_rename` method doc (#8858)
compheada461c3345b8a
diff --git a/datafusion/core/src/dataframe/mod.rs b/datafusion/core/src/dataframe/mod.rsindex f15f1e9ba6..9d00dc72f1 100644--- a/datafusion/core/src/dataframe/mod.rs+++ b/datafusion/core/src/dataframe/mod.rs@@ -1156,6 +1156,11 @@ impl DataFrame {/// Rename one column by applying a new projection. This is a no-op if the column to be/// renamed does not exist.///+ /// The method supports case sensitive rename with wrapping column name into one of following symbols ( " or ' or ` )+ ///+ /// Alternatively setting Datafusion param `datafusion.sql_parser.enable_ident_normalization` to `false` will enable+ /// case sensitive rename without need to wrap column name into special symbols+ ////// ```/// # use datafusion::prelude::*;/// # use datafusion::error::Result;@@ -1164,6 +1169,7 @@ impl DataFrame {/// let ctx = SessionContext::new();/// let df = ctx.read_csv("tests/data/example.csv", CsvReadOptions::new()).await?;/// let df = df.with_column_renamed("ab_sum", "total")?;+ ////// # Ok(())/// # }/// ```