spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From felixcheung <>
Subject [GitHub] spark pull request #17640: [SPARK-17608][SPARKR]:Long type has incorrect ser...
Date Wed, 26 Apr 2017 06:22:19 GMT
Github user felixcheung commented on a diff in the pull request:
    --- Diff: R/pkg/inst/tests/testthat/test_sparkSQL.R ---
    @@ -3043,6 +3043,23 @@ test_that("catalog APIs, currentDatabase, setCurrentDatabase, listDatabases",
       expect_equal(dbs[[1]], "default")
    +test_that("dapply with bigint type", {
    +  df <- createDataFrame(
    +        list(list(1380742793415240, 1, "1"), list(1380742793415240, 2, "2"),
    +        list(1380742793415240, 3, "3")), c("a", "b", "c"))
    +  schema <- structType(structField("a", "bigint"), structField("b", "bigint"),
    --- End diff --
    actually, I'm not sure.
    Walking through the code, `createDataFrame` calls `parallelize` which eventually calls
R's `serialize`. Since these big values are actually numeric, and not integer, `serialize`
writes them in that way

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message