Daft icon indicating copy to clipboard operation
Daft copied to clipboard

[EXPRESSIONS] `.str.substr`

Open colin-ho opened this issue 1 year ago • 3 comments

substr(start, length=None)

Computes the substr with a given starting index and length.

https://ibis-project.org/reference/expression-strings#ibis.expr.types.strings.StringValue.substr

colin-ho avatar Feb 20 '24 19:02 colin-ho

Hey! I assume this one is still needed. I would be happy to give it a try and contribute to it.

danila-b avatar May 09 '24 10:05 danila-b

@danila-b go for it!

samster25 avatar May 09 '24 19:05 samster25

Thanks @samster25

I opened a draft PR with some initial blueprints. https://github.com/Eventual-Inc/Daft/pull/2269

There is a bit of confusion about data type mapping since substr(start, len) parameters can be of a different datatype at the same time. I could use some pointers or examples on how it can be handled elegantly. https://github.com/Eventual-Inc/Daft/pull/2269#discussion_r1597607896

danila-b avatar May 12 '24 10:05 danila-b

Closes with https://github.com/Eventual-Inc/Daft/pull/2269

colin-ho avatar Jun 04 '24 16:06 colin-ho