You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by lu...@apache.org on 2026/09/22 15:43:44 UTC

(datafusion-sqlparser-rs) branch fix-eq-alias-assignment-from updated: Format FROM keyword alias assignment guard

This is an automated email from the ASF dual-hosted git repository.

LucaCappelletti94 pushed a commit to branch fix-eq-alias-assignment-from
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git


The following commit(s) were added to refs/heads/fix-eq-alias-assignment-from by this push:
     new 4924696b9 Format FROM keyword alias assignment guard
4924696b9 is described below

commit 4924696b9d98d1e6c527ba51d16684721e6e7c70
Author: LucaCappelletti94 <ca...@gmail.com>
AuthorDate: Tue Sep 22 17:43:36 2026 +0200

    Format FROM keyword alias assignment guard
---
 src/parser/mod.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index b4f5f4268..131355f0c 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -19170,7 +19170,8 @@ impl<'a> Parser<'a> {
             } if self.dialect.supports_eq_alias_assignment()
                 && matches!(left.as_ref(), Expr::Identifier(_)) =>
             {
-                if matches!(right.as_ref(), Expr::Identifier(v) if v.value.to_lowercase() == "from" && v.quote_style.is_none()) {
+                if matches!(right.as_ref(), Expr::Identifier(v) if v.value.to_lowercase() == "from" && v.quote_style.is_none())
+                {
                     return parser_err!(
                         format!("Expected an expression, found: {right}"),
                         self.peek_token_ref().span.start


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org