Skip to content

Commit 7a534fb

Browse files
committed
add comments for new_ident_quoted_if_needs func
1 parent 32aa0e9 commit 7a534fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

datafusion/sql/src/unparser/expr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ impl Unparser<'_> {
536536
.collect::<Result<Vec<_>>>()
537537
}
538538

539+
/// This function can create an identifier with or without quotes based on the dialect rules
539540
pub(super) fn new_ident_quoted_if_needs(&self, ident: String) -> ast::Ident {
540541
if self.dialect.identifier_needs_quote(&ident) {
541542
self.new_ident(ident)

0 commit comments

Comments
 (0)