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

Unusual behaviour of dplyr::pull() #1499

Open
Nikeds opened this issue May 8, 2024 · 2 comments
Open

Unusual behaviour of dplyr::pull() #1499

Nikeds opened this issue May 8, 2024 · 2 comments

Comments

@Nikeds
Copy link

Nikeds commented May 8, 2024

  1. When I use dplyr ::tbl() function to get a table from snowflake and rename all the columns to upper case and then apply pull using
    dplyr::pull(FSYMTICKEREXCHANGE) it gives me the desired output

The Code : dplyr::tbl(ch, "univ_full_table") %>% rename_all(toupper) %>% dplyr::pull(FSYMTICKEREXCHANGE)
(FSYMTICKEREXCHANGE is the column name in my table )

But,
When I rename to upper case and then again rename to lowercase and apply pull using dplyr::pull(fsymtickerexchange) it gives the output as null

The Code : dplyr::tbl(ch, "univ_full_table") %>% rename_all(toupper) %>% rename_all(tolower) %>% dplyr::pull(fsymtickerexchange)

Result: NULL

@ben1787
Copy link

ben1787 commented May 8, 2024

I also am having this issue

@DavisVaughan DavisVaughan transferred this issue from tidyverse/dplyr May 14, 2024
@hadley
Copy link
Member

hadley commented May 15, 2024

Would you mind following the advice in https://dbplyr.tidyverse.org/articles/reprex.html to create a reprex?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants