Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B891104B2 for ; Fri, 6 Dec 2013 06:49:47 +0000 (UTC) Received: (qmail 7987 invoked by uid 500); 6 Dec 2013 03:57:41 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 7829 invoked by uid 500); 6 Dec 2013 03:57:38 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 7817 invoked by uid 500); 6 Dec 2013 03:57:37 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 7809 invoked by uid 99); 6 Dec 2013 03:57:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 03:57:36 +0000 Date: Fri, 6 Dec 2013 03:57:36 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5909) locate and instr throw java.nio.BufferUnderflowException when empty string as substring MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-5909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13840934#comment-13840934 ] Ashutosh Chauhan commented on HIVE-5909: ---------------------------------------- +1 > locate and instr throw java.nio.BufferUnderflowException when empty string as substring > --------------------------------------------------------------------------------------- > > Key: HIVE-5909 > URL: https://issues.apache.org/jira/browse/HIVE-5909 > Project: Hive > Issue Type: Bug > Components: UDF > Affects Versions: 0.12.0 > Reporter: Rafal Wojdyla > Assignee: Navis > Attachments: HIVE-5909.1.patch.txt > > > Locate and instr functions, try: > {code} > select * from foo_bar where locate("", "foobar") > {code} > or > {code} > select * from foo_bar where instr("foobar", "") > {code} > Examples (hive cli): > {noformat} > hive (default)> select locate("","dfs") from foobar; > FAILED: BufferUnderflowException null > {noformat} > Log output from the failed job: > {noformat} > Task ID: > task_1384392632998_7426_m_000035 > > URL: > http://jobtracker:54311/taskdetails.jsp?jobid=job_1384392632998_7426&tipid=task_1384392632998_7426_m_000035 > ----- > Diagnostic Messages for this Task: > Error: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {...} > at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:175) > at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54) > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:429) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) > at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:162) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491) > at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:157) > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {...} > at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:544) > at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:157) > ... 8 more > Caused by: java.nio.BufferUnderflowException > at java.nio.Buffer.nextGetIndex(Buffer.java:474) > at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:117) > {noformat} -- This message was sent by Atlassian JIRA (v6.1#6144)