Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BinViewChunkedBuilder has incorrect docs #17277

Closed
kevinli1993 opened this issue Jun 28, 2024 · 1 comment
Closed

BinViewChunkedBuilder has incorrect docs #17277

kevinli1993 opened this issue Jun 28, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation rust Related to Rust Polars

Comments

@kevinli1993
Copy link

kevinli1993 commented Jun 28, 2024

Description

According to this page, BinViewChunkedBuilder::new takes the arguments (capacity and bytes_capacity).

Arguments
 - capacity - Number of string elements in the final array.
 - bytes_capacity - Number of bytes needed to store the string values.

However, the function signature only has name and capacity.


Screenshot:

image

Link

https://docs.pola.rs/api/rust/dev/polars/chunked_array/builder/struct.BinViewChunkedBuilder.html

@kevinli1993 kevinli1993 added the documentation Improvements or additions to documentation label Jun 28, 2024
@stinodego stinodego added the rust Related to Rust Polars label Jul 1, 2024
@krasnobaev
Copy link
Contributor

The bytes_capacity argument was originally used in the StringChunkedBuilder constructor. However, since StringChunkedBuilder is now type-aliased to BinViewChunkedBuilder, this parameter is no longer required.

This change was introduced in #13748 and particularly here.

I will submit a PR for this shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation rust Related to Rust Polars
Projects
None yet
Development

No branches or pull requests

4 participants