File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
datafusion/core/src/dataframe Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1156,6 +1156,11 @@ impl DataFrame {
1156
1156
/// Rename one column by applying a new projection. This is a no-op if the column to be
1157
1157
/// renamed does not exist.
1158
1158
///
1159
+ /// The method supports case sensitive rename with wrapping column name into one of following symbols ( " or ' or ` )
1160
+ ///
1161
+ /// Alternatively setting Datafusion param `datafusion.sql_parser.enable_ident_normalization` to `false` will enable
1162
+ /// case sensitive rename without need to wrap column name into special symbols
1163
+ ///
1159
1164
/// ```
1160
1165
/// # use datafusion::prelude::*;
1161
1166
/// # use datafusion::error::Result;
@@ -1164,6 +1169,7 @@ impl DataFrame {
1164
1169
/// let ctx = SessionContext::new();
1165
1170
/// let df = ctx.read_csv("tests/data/example.csv", CsvReadOptions::new()).await?;
1166
1171
/// let df = df.with_column_renamed("ab_sum", "total")?;
1172
+ ///
1167
1173
/// # Ok(())
1168
1174
/// # }
1169
1175
/// ```
You can’t perform that action at this time.
0 commit comments