Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 50C8D200B92 for ; Wed, 14 Sep 2016 03:42:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4F7ED160AD3; Wed, 14 Sep 2016 01:42:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 96184160AD2 for ; Wed, 14 Sep 2016 03:42:21 +0200 (CEST) Received: (qmail 96006 invoked by uid 500); 14 Sep 2016 01:42:20 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 95997 invoked by uid 99); 14 Sep 2016 01:42:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2016 01:42:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 686A62C014C for ; Wed, 14 Sep 2016 01:42:20 +0000 (UTC) Date: Wed, 14 Sep 2016 01:42:20 +0000 (UTC) From: "Yongzhi Chen (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-14743) ArrayIndexOutOfBoundsException - HBASE-backed views' query with JOINs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Sep 2016 01:42:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-14743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yongzhi Chen updated HIVE-14743: -------------------------------- Status: Patch Available (was: Open) Need code review. > ArrayIndexOutOfBoundsException - HBASE-backed views' query with JOINs > --------------------------------------------------------------------- > > Key: HIVE-14743 > URL: https://issues.apache.org/jira/browse/HIVE-14743 > Project: Hive > Issue Type: Bug > Components: HBase Handler > Affects Versions: 1.0.0 > Reporter: Yongzhi Chen > Assignee: Yongzhi Chen > Attachments: HIVE-14743.1.patch > > > The stack: > {noformat} > 2016-09-13T09:38:49,972 ERROR [186b4545-65b5-4bfc-bc8e-3e14e251bb12 main] exec.Task: Job Submission failed with exception 'java.lang.ArrayIndexOutOfBoundsException(1)' > java.lang.ArrayIndexOutOfBoundsException: 1 > at org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat.createFilterScan(HiveHBaseTableInputFormat.java:224) > at org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat.getSplitsInternal(HiveHBaseTableInputFormat.java:492) > at org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat.getSplits(HiveHBaseTableInputFormat.java:449) > at org.apache.hadoop.hive.ql.io.HiveInputFormat.addSplitsForGroup(HiveInputFormat.java:370) > at org.apache.hadoop.hive.ql.io.HiveInputFormat.getSplits(HiveInputFormat.java:466) > at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getCombineSplits(CombineHiveInputFormat.java:356) > at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getSplits(CombineHiveInputFormat.java:546) > at org.apache.hadoop.mapreduce.JobSubmitter.writeOldSplits(JobSubmitter.java:329) > at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:320) > at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:196) > at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290) > at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) > at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287) > at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:575) > at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:570) > {noformat} > Repro: > {noformat} > CREATE TABLE HBASE_TABLE_TEST_1( > cvalue string , > pk string, > ccount int ) > ROW FORMAT SERDE > 'org.apache.hadoop.hive.hbase.HBaseSerDe' > STORED BY > 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' > WITH SERDEPROPERTIES ( > 'hbase.columns.mapping'='cf:val,:key,cf2:count', > 'hbase.scan.cache'='500', > 'hbase.scan.cacheblocks'='false', > 'serialization.format'='1') > TBLPROPERTIES ( > 'hbase.table.name'='hbase_table_test_1', > 'serialization.null.format'='' ); > CREATE VIEW VIEW_HBASE_TABLE_TEST_1 AS SELECT hbase_table_test_1.cvalue,hbase_table_test_1.pk,hbase_table_test_1.ccount FROM hbase_table_test_1 WHERE hbase_table_test_1.ccount IS NOT NULL; > CREATE TABLE HBASE_TABLE_TEST_2( > cvalue string , > pk string , > ccount int ) > ROW FORMAT SERDE > 'org.apache.hadoop.hive.hbase.HBaseSerDe' > STORED BY > 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' > WITH SERDEPROPERTIES ( > 'hbase.columns.mapping'='cf:val,:key,cf2:count', > 'hbase.scan.cache'='500', > 'hbase.scan.cacheblocks'='false', > 'serialization.format'='1') > TBLPROPERTIES ( > 'hbase.table.name'='hbase_table_test_2', > 'serialization.null.format'=''); > CREATE VIEW VIEW_HBASE_TABLE_TEST_2 AS SELECT hbase_table_test_2.cvalue,hbase_table_test_2.pk,hbase_table_test_2.ccount FROM hbase_table_test_2 WHERE hbase_table_test_2.pk >='3-0000h-0' AND hbase_table_test_2.pk <= '3-0000h-g' AND hbase_table_test_2.ccount IS NOT NULL; > set hive.auto.convert.join=false; > SELECT p.cvalue cvalue > FROM `VIEW_HBASE_TABLE_TEST_1` `p` > LEFT OUTER JOIN `VIEW_HBASE_TABLE_TEST_2` `A1` > ON `p`.cvalue = `A1`.cvalue > LEFT OUTER JOIN `VIEW_HBASE_TABLE_TEST_1` `A2` > ON `p`.cvalue = `A2`.cvalue; > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)