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

Warnings with binary files #3357

Open
gregleleu opened this issue Jul 19, 2023 · 2 comments
Open

Warnings with binary files #3357

gregleleu opened this issue Jul 19, 2023 · 2 comments
Labels

Comments

@gregleleu
Copy link
Contributor

Doing any manipulation with binary files produces warnings

spark_version <- "3.4.0"
sc <- spark_connect(master = "local", version = spark_version)

# your reproducible example here
binary_sdf <- spark_read_binary(sc, 
  recursive_file_lookup = TRUE, 
  dir = "./tests/testthat/data/test_spark_read_binary_recursive_file_lookup", 
  name = "test")
binary_sdf %>% select(content)

# # Source: spark<?> [?? x 1]
#   content  
#   <list>   
# 1 <raw [4]>
# 2 <raw [4]>
# 3 <raw [4]>
# 4 <raw [4]>
# Warning message:
# In FUN(X[[i]], ...) : out-of-range values treated as 0 in coercion to raw
@edgararuiz
Copy link
Collaborator

Thanks @gregleleu ! I'm seeing the same in 3.4, and 3.0, but in my laptop. I don't see that in the CI test on the GitHub actions. Is where you testing a Mac?

@edgararuiz edgararuiz added the bug label Jul 19, 2023
@gregleleu
Copy link
Contributor Author

I'm on a mac yes, but it also shows up in the Sedona CI: https://github.com/apache/sedona/actions/runs/5603748794/jobs/10250817504 (section "run tests").
I don't get an error either when I run the sparklyr tests, they don't call select.

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

No branches or pull requests

2 participants