Skip to content

Commit

Permalink
add comments for new_ident_quoted_if_needs func
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed May 21, 2024
1 parent 32aa0e9 commit 7a534fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datafusion/sql/src/unparser/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ impl Unparser<'_> {
.collect::<Result<Vec<_>>>()
}

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

0 comments on commit 7a534fb

Please sign in to comment.