You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Qiuzhuang Lian (JIRA)" <ji...@apache.org> on 2016/12/07 03:42:59 UTC

[jira] [Comment Edited] (HIVE-14711) HQL in which involves with join between txt and orc tables returns incorrect result

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

Qiuzhuang Lian edited comment on HIVE-14711 at 12/7/16 3:42 AM:
----------------------------------------------------------------

Attache is the schema for orc/txt table creation.

BTW, txt table use partition with int date type while orc table doesn't.


was (Author: qiuzhuang.lian):
schema 

> HQL in which involves with join between txt and orc tables returns incorrect result
> -----------------------------------------------------------------------------------
>
>                 Key: HIVE-14711
>                 URL: https://issues.apache.org/jira/browse/HIVE-14711
>             Project: Hive
>          Issue Type: Bug
>          Components: ORC, SQL
>    Affects Versions: 1.2.1
>         Environment: Hive 1.2.1 + Hadoop 2.6.2
>            Reporter: Qiuzhuang Lian
>            Assignee: Owen O'Malley
>         Attachments: schema.sql
>
>
> We have the scenario of ORC with ACID joining with TXT table and it can't retrieve that ID based row which should.
> Here is the HQL:
> select a.id a_id,b.id b_id from txtdb.order a, orcdb.order_cln b where a.id = b.id and b.id = '8a708a864faf8ef6014fb70426d62a67';
> Table txtdb.order is TXT format and orcdb.order_cln is ORC format. Both of tables have this ID based row. But the result is empty.
> Surprisingly, if I switch the position of TXT and ORC as follows,
> select a.id a_id,b.id b_id from orcdb.order_cln a, txtdb.order b where a.id = b.id and b.id = '8a708a864faf8ef6014fb70426d62a67';
> Then this ID based row returns correctly., 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)