Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CEC5718FBE for ; Tue, 22 Mar 2016 16:41:26 +0000 (UTC) Received: (qmail 13012 invoked by uid 500); 22 Mar 2016 16:41:26 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 12947 invoked by uid 500); 22 Mar 2016 16:41:26 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 12906 invoked by uid 99); 22 Mar 2016 16:41:26 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2016 16:41:26 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 15B852C1F60 for ; Tue, 22 Mar 2016 16:41:26 +0000 (UTC) Date: Tue, 22 Mar 2016 16:41:26 +0000 (UTC) From: "Artem Shutak (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (IGNITE-1232) Support distributed SQL JOIN 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/IGNITE-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15206656#comment-15206656 ] Artem Shutak edited comment on IGNITE-1232 at 3/22/16 4:40 PM: --------------------------------------------------------------- I've investigated the failure of the assert and found a minimal query to reproduce. {code} select rootOrderId from ( select rootOrderId from "part".CustOrder union all select rootOrderId from "part".ReplaceOrder ) co {code} At the same time, test for union-ubquery works as well. To properly fix it, I need more understanding in {{GridH2CollocationModel}}, especially what is the right tree of {{GridH2CollocationModel}} objects in case of inner union? I see at least 2 possible trees: 1. {noformat} GridH2CollocationModel_1(upper=null) - represents all query |---GridH2CollocationModel_2 - represents union query (unions list here) |---GridH2CollocationModel_3 - represents left union query |---GridH2CollocationModel_4 - represents right union query {noformat} 2. {noformat} GridH2CollocationModel_1(upper=null) - represents all query (unions list here) |---GridH2CollocationModel_2 - represents left union query |---GridH2CollocationModel_3 - represents right union query {noformat} >From current implementation I see that we want to achieve the second tree, but it looks like wrong and we should have the first one. was (Author: ashutak): I've investigated the failure of the assert and found minimal query to reproduce. {code} select rootOrderId from ( select rootOrderId from "part".CustOrder union all select rootOrderId from "part".ReplaceOrder ) co {code} At the same time, test for union-ubquery works as well. To properly fix it, I need more understanding in {{GridH2CollocationModel}}, especially what is the right tree of {{GridH2CollocationModel}} objects in case of inner union? I see at least 2 possible trees: 1. {noformat} GridH2CollocationModel_1(upper=null) - represents all query |---GridH2CollocationModel_2 - represents union query (unions list here) |---GridH2CollocationModel_3 - represents left union query |---GridH2CollocationModel_4 - represents right union query {noformat} 2. {noformat} GridH2CollocationModel_1(upper=null) - represents all query (unions list here) |---GridH2CollocationModel_2 - represents left union query |---GridH2CollocationModel_3 - represents right union query {noformat} >From current implementation I see that we want to achieve the second tree, but it looks like wrong and we should have the first one. > Support distributed SQL JOIN > ----------------------------- > > Key: IGNITE-1232 > URL: https://issues.apache.org/jira/browse/IGNITE-1232 > Project: Ignite > Issue Type: Improvement > Reporter: Sergi Vladykin > Assignee: Sergi Vladykin > Fix For: 1.6 > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)