iffyio commented on code in PR #2168:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2168#discussion_r2741746831


##########
src/parser/mod.rs:
##########
@@ -9002,7 +9002,15 @@ impl<'a> Parser<'a> {
     /// [ColumnOption::NotNull].
     fn parse_column_option_expr(&mut self) -> Result<Expr, ParserError> {
         if self.peek_token_ref().token == Token::LParen {
-            let expr: Expr = self.with_state(ParserState::Normal, |p| 
p.parse_prefix())?;
+            let mut expr = self.with_state(ParserState::Normal, |p| 
p.parse_prefix())?;

Review Comment:
   ```suggestion
               let mut expr = self.with_state(ParserState::Normal, |p| 
p.parse_subexpr())?;
   ```
   not sure I followed the intent of the added code, but I wonder would the 
issue be fixed by changing this line instead (thinking since `(foo())::INT` 
should be parsed as an expression), or are there other considerations?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to