Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BindNULL toNA (logical)#156

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
krlmlr wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromb-const-null
Draft

BindNULL toNA (logical)#156

krlmlr wants to merge1 commit intomainfromb-const-null

Conversation

@krlmlr
Copy link
Collaborator

@krlmlrkrlmlr commentedMay 4, 2024
edited
Loading

Closes#155.

We'd need to either upstream this, or patch here. Unclear about the consequences.

duckdb<- asNamespace("duckdb")drv<-duckdb::duckdb()con<-DBI::dbConnect(drv)experimental<-FALSEdf1<-tibble::tibble(a=1)rel1<-duckdb$rel_from_df(con,df1,experimental=experimental)rel2<-duckdb$rel_project(rel1,list(    {tmp_expr<-duckdb$expr_reference("a")duckdb$expr_set_alias(tmp_expr,"a")tmp_expr    },    {tmp_expr<-if ("experimental"%in% names(formals(duckdb$expr_constant))) {duckdb$expr_constant(NA,experimental=experimental)      }else {duckdb$expr_constant(NA)      }duckdb$expr_set_alias(tmp_expr,"b")tmp_expr    }  ))rel2#> DuckDB Relation:#> ---------------------#> --- Relation Tree ---#> ---------------------#> Projection [a as a, NULL as b]#>   r_dataframe_scan(0x138dfe8e8)#>#> ---------------------#> -- Result Columns  --#> ---------------------#> - a (DOUBLE)#> - b (BOOLEAN)dput(duckdb$rel_to_altrep(rel2))#> structure(list(a = 1, b = NA), row.names = c(NA, -1L), class = "data.frame")DBI::dbDisconnect(con)

Created on 2024-05-04 withreprex v2.1.0

@krlmlrkrlmlr changed the titleBind NULL to logicalMerge branch 'cran-0.10.2'May 4, 2024
@krlmlrkrlmlr changed the titleMerge branch 'cran-0.10.2'BindNULL toNA (logical)May 4, 2024
@krlmlrkrlmlr marked this pull request as draftMay 4, 2024 18:21
@krlmlrkrlmlr requested a review fromhannesMay 4, 2024 18:22
krlmlr added a commit to tidyverse/duckplyr that referenced this pull requestMay 5, 2024
krlmlr added a commit to tidyverse/duckplyr that referenced this pull requestMay 5, 2024
krlmlr added a commit to tidyverse/duckplyr that referenced this pull requestMay 5, 2024
krlmlr added a commit to tidyverse/duckplyr that referenced this pull requestMay 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hanneshannesAwaiting requested review from hannes

Copilot code reviewCopilotAwaiting requested review from CopilotCopilot will automatically review once the pull request is marked ready for review

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

NULL mapped toNA_integer_

2 participants

@krlmlr

[8]ページ先頭

©2009-2025 Movatter.jp