From 5644e12267e8fa9a842b0e594481b2429c616ecc Mon Sep 17 00:00:00 2001 From: BlackIceSpain Date: Mon, 27 Jul 2015 09:56:07 +0200 Subject: [PATCH] Fix compatibility with newer Hive >0.12 data Types #Fixes issue 84 This patch is not mine, its from winghc, but I also need the fix, and I tested it locally, it works perfectly: https://github.com/nexr/RHive/issues/84 --- RHive/R/rhive.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RHive/R/rhive.R b/RHive/R/rhive.R index e54f7bf..15e5fe1 100644 --- a/RHive/R/rhive.R +++ b/RHive/R/rhive.R @@ -352,7 +352,7 @@ for (i in seq.int(length(colTypes))) { colType <- colTypes[i] colName <- colNames[i] - if (colType == "string") { + if ( any(colType %in% c("string","varchar","timestamp","date","char")) ) { lst[[i]] <- character() } else if (length(grep("^array", colType)) > 0) { lst[[i]] <- character()