You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "László Bodor (Jira)" <ji...@apache.org> on 2021/01/07 06:40:00 UTC

[jira] [Commented] (HIVE-24278) Implement an UDF for throwing exception in arbitrary vertex

    [ https://issues.apache.org/jira/browse/HIVE-24278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260263#comment-17260263 ] 

László Bodor commented on HIVE-24278:
-------------------------------------

hey [~ashish-kumar-sharma]! sorry, I forgot to respond, in the mean I started the work on [PR|https://github.com/apache/hive/pull/1817], feel free to take a look and comment if you're interested


> Implement an UDF for throwing exception in arbitrary vertex
> -----------------------------------------------------------
>
>                 Key: HIVE-24278
>                 URL: https://issues.apache.org/jira/browse/HIVE-24278
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Bodor
>            Assignee: László Bodor
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> For testing purposes sometimes we need to make the query fail in a vertex, so assuming that we already know the plan, it could be something like:
> on mapper side
> {code}
> select a.col1, exception_in_vertex("Map 1") from a
> join b on b.id = a.id
> {code}
> or on reducer side
> {code}
> select a.col1, exception_in_vertex("Reducer 2") from a
> join b on b.id = a.id
> {code}
> more advanced configuration is possible, e.g we want to make Reducer 2's 50th task's first (0th) attempt fail with an exception:
> {code}
> exception_in_vertex("Reducer 2", 50, 0)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)