Open universalmind303 opened 1 month ago
I see the implicit struggle here as being: inconsistent naming across our Python and SQL functionality.
Perhaps to address that, we can establish a set of rules we'd like to follow:
_F.endswith
in Python and "endswith
in SQL)col("x").endswith(...)
Lastly, we hide the functional Python API for (1) from our users, so that we make method chaining (2) the preferred way of using Daft if you are a Python user.
I feel like that would result in the overall least confusion... WDYT?
also, an old discussion on "pythonic" naming conventions in polars https://github.com/pola-rs/polars/issues/6120
Is your feature request related to a problem? Please describe. I don't think we should use archaic python naming conventions to drive our DSL. Nearly all of our other functions use proper snakecase except for these two. Now that we are promoting SQL to a first class way of interacting with your data, our DSL should be influenced by the host language (python in this case)_. Renaming these will make it consistent across both APIs
Describe the solution you'd like rename
.str.endswith
and.str.startswith
to.str.ends_with
and.str.starts_with