You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ga...@apache.org on 2015/08/11 18:42:56 UTC
hive git commit: HIVE-11511 Output the message of orcfiledump when
ORC files are not specified (Shinichi Yamashita via gates)
Repository: hive
Updated Branches:
refs/heads/master 7e5368531 -> cfe9e484f
HIVE-11511 Output the message of orcfiledump when ORC files are not specified (Shinichi Yamashita via gates)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/cfe9e484
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/cfe9e484
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/cfe9e484
Branch: refs/heads/master
Commit: cfe9e484f8624b590a728d758099c1fd5d069672
Parents: 7e53685
Author: Alan Gates <ga...@hortonworks.com>
Authored: Tue Aug 11 09:42:20 2015 -0700
Committer: Alan Gates <ga...@hortonworks.com>
Committed: Tue Aug 11 09:42:20 2015 -0700
----------------------------------------------------------------------
ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/cfe9e484/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java
index cbbec36..4acb810 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java
@@ -82,6 +82,10 @@ public final class FileDump {
boolean printTimeZone = cli.hasOption('t');
boolean jsonFormat = cli.hasOption('j');
String[] files = cli.getArgs();
+ if (files.length == 0) {
+ System.err.println("Error : ORC files are not specified");
+ return;
+ }
if (dumpData) {
printData(Arrays.asList(files), conf);
} else {