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 85A72200C8B for ; Mon, 22 May 2017 12:41:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 80BE1160BBF; Mon, 22 May 2017 10:41:07 +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 C6DA8160BA5 for ; Mon, 22 May 2017 12:41:06 +0200 (CEST) Received: (qmail 66045 invoked by uid 500); 22 May 2017 10:41:06 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 66036 invoked by uid 99); 22 May 2017 10:41:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 May 2017 10:41:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A57A31A0407 for ; Mon, 22 May 2017 10:41:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 7ps5ZBNyz22N for ; Mon, 22 May 2017 10:41:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DE3DC5F242 for ; Mon, 22 May 2017 10:41:04 +0000 (UTC) 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 67452E0012 for ; Mon, 22 May 2017 10:41:04 +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 1ECE721B56 for ; Mon, 22 May 2017 10:41:04 +0000 (UTC) Date: Mon, 22 May 2017 10:41:04 +0000 (UTC) From: "chenerlu (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CARBONDATA-1076) Join Issue caused by dictionary and shuffle exchange MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 22 May 2017 10:41:07 -0000 chenerlu created CARBONDATA-1076: ------------------------------------ Summary: Join Issue caused by dictionary and shuffle exchange Key: CARBONDATA-1076 URL: https://issues.apache.org/jira/browse/CARBONDATA-1076 Project: CarbonData Issue Type: Bug Environment: Carbon + spark 2.1 Reporter: chenerlu Assignee: Ravindra Pesala We can reproduce this issue as following steps: Step1: create a carbon table carbon.sql("CREATE TABLE IF NOT EXISTS carbon_table (col1 int, col2 int, col3 int) STORED by 'carbondata' TBLPROPERTIES('DICTIONARY_INCLUDE'='col1,col2,col3','TABLE_BLOCKSIZE'='4')") Step2: load data carbon.sql("LOAD DATA LOCAL INPATH '/opt/carbon_table' INTO TABLE carbon_table") you can get carbon_table file in attachment. Step3: do the query [expected] Hive table and parquet table get same result as below and it should be correct. [acutally] carbon will get null because wrong match Root cause analysis: It is because this query has two subquery, and one subquey do the decode after exchange and the other subquery do the decode before exchange, and this may lead to wrong match when execute full join. My idea: Can we move decode before exchange ? Because I am not very familiar with Carbon query, so any idea about this ? -- This message was sent by Atlassian JIRA (v6.3.15#6346)