Skip to content

Commit

Permalink
add R test
Browse files Browse the repository at this point in the history
  • Loading branch information
krasinski authored and valenad1 committed May 3, 2024
1 parent 73bf877 commit b0a9fef
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions h2o-r/tests/testdir_parser/runit_GH_16161_parquet_npe.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
setwd(normalizePath(dirname(R.utils::commandArgs(asValues = TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")

test.parseParquetString<- function() {
df <- h2o.createFrame(rows = 100,
cols = 10,
string_fraction = 0.1, # create one string column
seed = 5,
seed_for_column_types = 25)
target <- file.path(sandbox(), "createdFrame.parquet")
h2o.exportFile(data = df,
path = target,
format = "parquet",
write_checksum = FALSE)
df2 <- h2o.importFile(target)
compareFrames(df, df2)
}

doTest("Test Parquet String export error.", test.parseParquetString)

0 comments on commit b0a9fef

Please sign in to comment.