hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jd...@apache.org
Subject [11/51] [abbrv] 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 Thu, 17 Mar 2016 22:47:15 GMT
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/61b66449
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/61b66449
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/61b66449

Branch: refs/heads/llap
Commit: 61b66449b12ce48fbdfcea696e9a0bdbaa6c4290
Parents: 415373b
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:50:09 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/61b66449/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/61b66449/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 2914194..19b97e4 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
@@ -70,6 +70,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;
@@ -391,7 +392,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/61b66449/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