You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Xiaomeng Zhang (Jira)" <ji...@apache.org> on 2020/06/29 21:39:00 UTC

[jira] [Comment Edited] (IMPALA-9908) SHOW PARTITIONS on a kudu backed impala table return NULL on Replicas

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

Xiaomeng Zhang edited comment on IMPALA-9908 at 6/29/20, 9:38 PM:
------------------------------------------------------------------

From debugging, I can see schema in hs2 protocol is transferred from 

impala::TYPE_INT to

{apache::hive::service::cli::thrift::TTypeEntry & }

apache::hive::service::cli::thrift::TTypeId::INT_TYPE,

while in beeswex protocol it's transferred from 

Impala::TPrimitiveType::INT to 

{Apache::Hadoop::Hive::FieldSchema & }

Type = “int”


was (Author: xiaomeng zhang):
From debugging, I can see schema is transferred from 

impala::TYPE_INT to

{apache::hive::service::cli::thrift::TTypeEntry & }

apache::hive::service::cli::thrift::TTypeId::INT_TYPE,

while in beeswex it's transferred from 

Impala::TPrimitiveType::INT to 

{Apache::Hadoop::Hive::FieldSchema & }

Type = “int”

> SHOW PARTITIONS on a kudu backed impala table return NULL on Replicas
> ---------------------------------------------------------------------
>
>                 Key: IMPALA-9908
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9908
>             Project: IMPALA
>          Issue Type: Bug
>    Affects Versions: Impala 4.0
>            Reporter: Xiaomeng Zhang
>            Priority: Major
>
> When using hs2 protocol, we get NULL Replicas for SHOW PARTITIONS on a kudu backed impala table.
> To reproduce:
> impala-shell --protocol=hs2
> create table xm(id int, value int, PRIMARY KEY(id)) PARTITION BY HASH PARTITIONS 16 STORED AS KUDU;
> [localhost:21050] default> show partitions xm;
> Query: show partitions xm
> +-----------+----------+-----------------+-----------+
> | Start Key | Stop Key | Leader Replica  | #Replicas |
> +-----------+----------+-----------------+-----------+
> |           | 00000001 | 127.0.0.1:31201 | NULL      |
> | 00000001  | 00000002 | 127.0.0.1:31202 | NULL      |
> | 00000002  | 00000003 | 127.0.0.1:31202 | NULL      |
> | 00000003  | 00000004 | 127.0.0.1:31202 | NULL      |
> | 00000004  | 00000005 | 127.0.0.1:31202 | NULL      |
> | 00000005  | 00000006 | 127.0.0.1:31202 | NULL      |
> | 00000006  | 00000007 | 127.0.0.1:31202 | NULL      |
> | 00000007  | 00000008 | 127.0.0.1:31200 | NULL      |
> | 00000008  | 00000009 | 127.0.0.1:31201 | NULL      |
> | 00000009  | 0000000A | 127.0.0.1:31202 | NULL      |
> | 0000000A  | 0000000B | 127.0.0.1:31200 | NULL      |
> | 0000000B  | 0000000C | 127.0.0.1:31202 | NULL      |
> | 0000000C  | 0000000D | 127.0.0.1:31201 | NULL      |
> | 0000000D  | 0000000E | 127.0.0.1:31202 | NULL      |
> | 0000000E  | 0000000F | 127.0.0.1:31201 | NULL      |
> | 0000000F  |          | 127.0.0.1:31202 | NULL      |
> +-----------+----------+-----------------+-----------+



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org