From issues-return-160963-archive-asf-public=cust-asf.ponee.io@hive.apache.org Fri Jun 21 07:42:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E230A18064F for ; Fri, 21 Jun 2019 09:42:01 +0200 (CEST) Received: (qmail 69414 invoked by uid 500); 21 Jun 2019 07:42:01 -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 69399 invoked by uid 99); 21 Jun 2019 07:42:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2019 07:42:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 90379E2CF9 for ; Fri, 21 Jun 2019 07:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 23AF12544D for ; Fri, 21 Jun 2019 07:42:00 +0000 (UTC) Date: Fri, 21 Jun 2019 07:42:00 +0000 (UTC) From: "Hive QA (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-21861) ClassCastException during CTAS over external table using KafkaStorageHandler 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-21861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16869270#comment-16869270 ] Hive QA commented on HIVE-21861: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12972405/HIVE-21861.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 16173 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/17682/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/17682/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-17682/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase {noformat} This message is automatically generated. ATTACHMENT ID: 12972405 - PreCommit-HIVE-Build > ClassCastException during CTAS over external table using KafkaStorageHandler > ---------------------------------------------------------------------------- > > Key: HIVE-21861 > URL: https://issues.apache.org/jira/browse/HIVE-21861 > Project: Hive > Issue Type: Bug > Components: kafka integration > Affects Versions: 4.0.0 > Reporter: Justin Leet > Assignee: Rajkumar Singh > Priority: Major > Attachments: HIVE-21861.patch > > > To reproduce, create a table similar to the following: > {code} > CREATE EXTERNAL TABLE > (raw_value STRING) > ROW FORMAT DELIMITED > LINES TERMINATED BY '\n' > STORED BY 'org.apache.hadoop.hive.kafka.KafkaStorageHandler' > TBLPROPERTIES( > "kafka.topic"="", > "kafka.bootstrap.servers"="", > "kafka.consumer.security.protocol"="PLAINTEXT", > "kafka.serde.class"="org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe"); > {code} > Note the SerDe isn't the default SerDe. Additionally, this error occurs when vectorization is enabled. > Basic queries work fine: > {code} > SELECT * FROM
LIMIT 1; > {code} > Doing a CTAS to bring it into a managed table fails: > {code} > CREATE TABLE AS > SELECT * FROM
; > {code} > The exception is: > {code} > Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.serde2.lazy.LazyString cannot be cast to org.apache.hadoop.io.TextCaused by: java.lang.ClassCastException: org.apache.hadoop.hive.serde2.lazy.LazyString cannot be cast to org.apache.hadoop.io.Text at org.apache.hadoop.hive.ql.exec.vector.VectorAssignRow.assignRowColumn(VectorAssignRow.java:471) at org.apache.hadoop.hive.ql.exec.vector.VectorAssignRow.assignRowColumn(VectorAssignRow.java:350) at org.apache.hadoop.hive.kafka.VectorizedKafkaRecordReader.readNextBatch(VectorizedKafkaRecordReader.java:159) at org.apache.hadoop.hive.kafka.VectorizedKafkaRecordReader.next(VectorizedKafkaRecordReader.java:113) at org.apache.hadoop.hive.kafka.VectorizedKafkaRecordReader.next(VectorizedKafkaRecordReader.java:47) at org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader.doNext(HiveContextAwareRecordReader.java:360) ... 24 more > {code} > A workaround to this is to disable vectorization via: > {code} > set hive.vectorized.execution.enabled = false; > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)