LucaCappelletti94 commented on code in PR #1707:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/1707#discussion_r1973272001


##########
src/parser/mod.rs:
##########
@@ -13595,10 +13619,33 @@ impl<'a> Parser<'a> {
         }
     }
 
-    /// Parse an expression, optionally followed by ASC or DESC (used in ORDER 
BY)
+    /// Parse an OrderByExpr expression, optionally followed by ASC or DESC 
(used in ORDER BY)
     pub fn parse_order_by_expr(&mut self) -> Result<OrderByExpr, ParserError> {
+        self.parse_create_index_expr::<false>()
+            .map(|index_column| index_column.column)
+    }
+
+    /// Parse an IndexColumn expression (used in CREATE INDEX)
+    pub fn parse_create_index_expr<const PARSE_OPERATOR_CLASS: bool>(

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to