hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject [14/50] [abbrv] hive git commit: HIVE-11511 Output the message of orcfiledump when ORC files are not specified (Shinichi Yamashita via gates)
Date Mon, 17 Aug 2015 22:00:44 GMT
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 <gates@hortonworks.com>
Authored: Tue Aug 11 09:42:20 2015 -0700
Committer: Alan Gates <gates@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 {


Mime
View raw message