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

Polars: add make_with_columns #824

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

Polars: add make_with_columns #824

wants to merge 20 commits into from

Conversation

ankke
Copy link
Contributor

@ankke ankke commented Jun 21, 2023

No description provided.

@ankke ankke changed the title Add doc string Add make_select_trans Jun 21, 2023
Copy link
Member

@Shoeboxam Shoeboxam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exciting to have our first context constructor!

rust/src/transformations/polars/make_select_trans/mod.rs Outdated Show resolved Hide resolved
rust/src/transformations/polars/make_select_trans/mod.rs Outdated Show resolved Hide resolved
rust/src/transformations/polars/make_select_trans/mod.rs Outdated Show resolved Hide resolved
rust/src/transformations/polars/make_select_trans/mod.rs Outdated Show resolved Hide resolved
rust/src/transformations/polars/make_select_trans/mod.rs Outdated Show resolved Hide resolved
rust/src/transformations/polars/make_select_trans/mod.rs Outdated Show resolved Hide resolved

use super::*;

fn get_3_row_test_data() -> (LazyFrameDomain, LazyFrame, ExprDomain) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar comment as in the other PR, make this return a Fallible so you can replace the .unwrap_test()s with ?.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think these test data helper functions could be reused? If so, move them out into a #[cfg(test)] module in rust/src/transformations/polars/mod.rs (and mark the functions as pub so you can use it from these tests).

rust/src/transformations/polars/mod.rs Outdated Show resolved Hide resolved
@Shoeboxam Shoeboxam linked an issue Jun 22, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add make_select_trans
4 participants