Skip to content

Commit 6686a36

Browse files
Jan Sterbahonzasterba
Jan Sterba
authored andcommitted
[HEXDEV-720] fix tests for hive direct import
- also enable hive jdbc tests for hadoop 3 as our docker image now supports it
1 parent 9a2a361 commit 6686a36

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

h2o-hive/tests/R/runit_hive_import.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ test.import.hive <- function() {
77
expect_equal(nrow(test_table_normal),3)
88
expect_equal(ncol(test_table_normal),5)
99

10-
test_table_multi_key <- h2o.import_hive_table("default", "test_table_multi_key", list(c("2017", "01")))
10+
test_table_multi_key <- h2o.import_hive_table("default", "test_table_multi_key", list(c("2017", "1")))
1111
expect_equal(nrow(test_table_multi_key),2)
12-
expect_equal(ncol(test_table_multi_key),5)
12+
expect_equal(ncol(test_table_multi_key),5)
1313

1414
}
1515

h2o-hive/tests/python/pyunit_hive_import.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def hive_import():
4343
assert test_table_multi_format.ncol==5, "test_table_multi_format number of columns is incorrect. h2o.import_hive_table() is not working."
4444

4545
# import from partitioned table with single format and partition filter
46-
test_table_multi_key = h2o.import_hive_table("default", "test_table_multi_key", partitions=[["2017", "02"]])
46+
test_table_multi_key = h2o.import_hive_table("default", "test_table_multi_key", partitions=[["2017", "2"]])
4747
assert_is_type(test_table_multi_key, H2OFrame)
4848
assert test_table_multi_key.nrow==3, "test_table_multi_key number of rows is incorrect. h2o.import_hive_table() is not working."
4949
assert test_table_multi_key.ncol==5, "test_table_multi_key number of columns is incorrect. h2o.import_hive_table() is not working."

0 commit comments

Comments
 (0)