timsaucer opened a new issue, #1446:
URL: https://github.com/apache/datafusion-python/issues/1446
**Is your feature request related to a problem or challenge? Please describe
what you are trying to do.**
In functions like `regexp_count` we have definition like this:
```python
def regexp_count(
string: Expr, pattern: Expr, start: Expr | None = None, flags: Expr |
None = None
) -> Expr:
```
It is a common pattern that the `pattern` is a string, the `start` is an
integer, and `flags` is a string (or single character).
It would be more pythonic if we can just pass those values without wrapping
them in a `lit()` call.
**Describe the solution you'd like**
Review the regexp functions in the function library and find other common
patterns.
For each allow users to not have to specify a Expr. We do this in other
places in the code, so a pattern is already established.
--
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]