You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by kg...@apache.org on 2020/10/13 08:12:59 UTC

[hive] branch master updated: HIVE-24146: Cleanup TaskExecutionException in GenericUDTFExplode (#1483) (Zhihua Deng reviewed by Zoltan Haindrich)

This is an automated email from the ASF dual-hosted git repository.

kgyrtkirk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 274986a  HIVE-24146: Cleanup TaskExecutionException in GenericUDTFExplode (#1483) (Zhihua Deng reviewed by Zoltan Haindrich)
274986a is described below

commit 274986a7dca674551dac3b65079a4411feb097aa
Author: dengzh <de...@gmail.com>
AuthorDate: Tue Oct 13 16:12:47 2020 +0800

    HIVE-24146: Cleanup TaskExecutionException in GenericUDTFExplode (#1483) (Zhihua Deng reviewed by Zoltan Haindrich)
---
 .../hive/ql/exec/TaskExecutionException.java       | 40 ----------------------
 .../hive/ql/udf/generic/GenericUDTFExplode.java    |  3 --
 2 files changed, 43 deletions(-)

diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/TaskExecutionException.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/TaskExecutionException.java
deleted file mode 100644
index a6a38ae..0000000
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/TaskExecutionException.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.hadoop.hive.ql.exec;
-
-/**
- * Exception thrown by any task processor to signal a problem with task
- * execution.
- */
-public class TaskExecutionException extends RuntimeException {
-
-  private static final long serialVersionUID = 1L;
-
-  public TaskExecutionException(String msg) {
-    super(msg);
-  }
-
-  public TaskExecutionException(String msg, Throwable cause) {
-    super(msg, cause);
-  }
-
-  public TaskExecutionException(Throwable cause) {
-    super(cause);
-  }
-
-}
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFExplode.java b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFExplode.java
index 948cbb3..da1d76d 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFExplode.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFExplode.java
@@ -24,7 +24,6 @@ import java.util.Map;
 import java.util.Map.Entry;
 
 import org.apache.hadoop.hive.ql.exec.Description;
-import org.apache.hadoop.hive.ql.exec.TaskExecutionException;
 import org.apache.hadoop.hive.ql.exec.UDFArgumentException;
 import org.apache.hadoop.hive.ql.metadata.HiveException;
 import org.apache.hadoop.hive.serde2.objectinspector.ListObjectInspector;
@@ -106,8 +105,6 @@ public class GenericUDTFExplode extends GenericUDTF {
         forward(forwardMapObj);
       }
       break;
-    default:
-      throw new TaskExecutionException("explode() can only operate on an array or a map");
     }
   }