You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by se...@apache.org on 2015/08/18 00:00:44 UTC

[14/50] [abbrv] hive git commit: HIVE-11511 Output the message of orcfiledump when ORC files are not specified (Shinichi Yamashita via gates)

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/hbase-metastore
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 {