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

Comparing strings with numbers #83

Closed
krlmlr opened this issue Nov 16, 2023 · 1 comment · Fixed by #148
Closed

Comparing strings with numbers #83

krlmlr opened this issue Nov 16, 2023 · 1 comment · Fixed by #148
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@krlmlr
Copy link
Collaborator

krlmlr commented Nov 16, 2023

options(conflicts.policy = list(warn = FALSE))
library(duckplyr)

data.frame(a = 1) |>
  filter(a != "")
#>   a
#> 1 1

data.frame(a = 1) |>
  as_duckplyr_df() |>
  filter(a != "")
#> materializing:
#> ---------------------
#> --- Relation Tree ---
#> ---------------------
#> Filter [!=(a, '')]
#>   r_dataframe_scan(0x10c5491b8)
#> 
#> ---------------------
#> -- Result Columns  --
#> ---------------------
#> - a (DOUBLE)
#> 
#> [1] a
#> <0 rows> (or 0-length row.names)

Created on 2023-11-16 with reprex v2.0.2

Upstream: duckdb/duckdb-r#44

@krlmlr
Copy link
Collaborator Author

krlmlr commented May 5, 2024

Now:

options(conflicts.policy = list(warn = FALSE))
library(duckplyr)

data.frame(a = 1) |>
  filter(a != "")
#>   a
#> 1 1

data.frame(a = 1) |>
  as_duckplyr_df() |>
  filter(a != "")
#> materializing:
#> ---------------------
#> --- Relation Tree ---
#> ---------------------
#> Filter [!=(a, '')]
#>   r_dataframe_scan(0x10887eae0)
#> 
#> ---------------------
#> -- Result Columns  --
#> ---------------------
#> - a (DOUBLE)
#> 
#>   a
#> 1 1

Created on 2024-05-05 with reprex v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
1 participant