hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sp...@apache.org
Subject hive git commit: HIVE-13222: Move rc-file-v0.rc used on TestRCFile.java to src/test/resources (Sergio Pena, reviewed by Szehon Ho)
Date Wed, 09 Mar 2016 15:52:38 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-1 dd98e67c2 -> 5c8b6c0a1


HIVE-13222: Move rc-file-v0.rc used on TestRCFile.java to src/test/resources (Sergio Pena,
reviewed by Szehon Ho)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/5c8b6c0a
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/5c8b6c0a
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/5c8b6c0a

Branch: refs/heads/branch-1
Commit: 5c8b6c0a1f19a7d396a2e3c1eabaa41ed85b40d3
Parents: dd98e67
Author: Sergio Pena <sergio.pena@cloudera.com>
Authored: Wed Mar 9 09:50:09 2016 -0600
Committer: Sergio Pena <sergio.pena@cloudera.com>
Committed: Wed Mar 9 09:51:16 2016 -0600

----------------------------------------------------------------------
 ql/src/test/data/rc-file-v0.rc                       | Bin 216 -> 0 bytes
 .../org/apache/hadoop/hive/ql/io/TestRCFile.java     |   3 ++-
 ql/src/test/resources/rc-file-v0.rc                  | Bin 0 -> 216 bytes
 3 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/5c8b6c0a/ql/src/test/data/rc-file-v0.rc
----------------------------------------------------------------------
diff --git a/ql/src/test/data/rc-file-v0.rc b/ql/src/test/data/rc-file-v0.rc
deleted file mode 100644
index 767d83e..0000000
Binary files a/ql/src/test/data/rc-file-v0.rc and /dev/null differ

http://git-wip-us.apache.org/repos/asf/hive/blob/5c8b6c0a/ql/src/test/org/apache/hadoop/hive/ql/io/TestRCFile.java
----------------------------------------------------------------------
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/io/TestRCFile.java b/ql/src/test/org/apache/hadoop/hive/ql/io/TestRCFile.java
index cff5ada..e03d955 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/io/TestRCFile.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/io/TestRCFile.java
@@ -71,6 +71,7 @@ import org.apache.hadoop.mapred.InputSplit;
 import org.apache.hadoop.mapred.JobConf;
 import org.apache.hadoop.mapred.RecordReader;
 import org.apache.hadoop.mapred.Reporter;
+import org.apache.hive.common.util.HiveTestUtils;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -392,7 +393,7 @@ public class TestRCFile {
     String[] row = new String[]{"Tester", "Bart", "333 X St.", "Reno", "NV",
                                 "USA"};
     RCFile.Reader reader =
-      new RCFile.Reader(fs, new Path("src/test/data/rc-file-v0.rc"), conf);
+      new RCFile.Reader(fs, new Path(HiveTestUtils.getFileFromClasspath("rc-file-v0.rc")),
conf);
     LongWritable rowID = new LongWritable();
     BytesRefArrayWritable cols = new BytesRefArrayWritable();
     assertTrue("old file reader first row", reader.next(rowID));

http://git-wip-us.apache.org/repos/asf/hive/blob/5c8b6c0a/ql/src/test/resources/rc-file-v0.rc
----------------------------------------------------------------------
diff --git a/ql/src/test/resources/rc-file-v0.rc b/ql/src/test/resources/rc-file-v0.rc
new file mode 100644
index 0000000..767d83e
Binary files /dev/null and b/ql/src/test/resources/rc-file-v0.rc differ


Mime
View raw message