yussypu opened a new pull request, #3068:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3068

   Fixes exponential parse time for nested calls with named arguments.
   
   `parse_function_args` wrapped `name <operator> value` in a single
   `maybe_parse`. When `value` failed, the whole argument was parsed again
   on the unnamed path, doubling work per nesting level. Only
   `name <operator>` is speculative now, so the value is parsed once.
   
   `SELECT u.u(k=u.u(k=...` unclosed, 22 levels: 17.6s before, 0.3ms after.
   Root cause is separate from #3006, which notes #3002 still doubles there.
   
   Dialects: all that support named function arguments (reported on DuckDB).
   Adds a regression test and a fuzz seed.
   
   Closes #3002
   


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