xudong963 commented on PR #15644:
URL: https://github.com/apache/datafusion/pull/15644#issuecomment-2816727289

   > thanks @kumarlokesh The code now looks much more aligned.
   > 
   > perhaps we can factor out
   > 
   > ```
   >                         self.parser
   >                              .parse_statement()
   >                              .map(|stmt| 
Statement::Statement(Box::from(stmt)))
   >                              .map_err(|e| match e {
   >                                  ParserError::RecursionLimitExceeded => {
   >                                      DataFusionError::SQL(
   >                                          
ParserError::RecursionLimitExceeded,
   >                                          Some(format!(
   >                                              " (current limit: {})",
   >                                              self.options.recursion_limit
   >                                          )),
   >                                      )
   >                                  }
   >                                  other => DataFusionError::SQL(other, 
None),
   >                              })
   > ```
   > 
   > into helper method
   > 
   > But it can be done in followup PR
   
   +1 for this to reduce duplicated code


-- 
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