pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <amit.kapila@huawei.com>
To: nvardar@carrieriq.com
To: pgsql-bugs@postgresql.org
Cc: 'pgsql-general' <pgsql-general@postgresql.org>
Subject: Re: [BUGS] BUG #7850: left outer join is not working or I didn't contruct the	query properly
Date: Tue, 5 Feb 2013 21:36:04 +0530
Message-ID: <003c01ce03ba$b379afe0$1a6d0fa0$@kapila@huawei.com> (raw)
In-Reply-To: <E1U2cey-0004DC-QS@wrigleys.postgresql.org>
References: <E1U2cey-0004DC-QS@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

Tuesday, February 05, 2013 12:40 PM nvardar wrote:
> I am trying to run below query;
> 
> SELECT
>     tbl.id,
>     tbl.day,
>     tbl.week,
>     tbl.appfailure,
>     tbl.appname,
>     tbl.deviceid,
>     ext6.DIM_NAME,
>     ext7.DIM_NAME,
>     ext8.DIM_NAME,
>     ext9.DIM_NAME,
>     tbl.starttime
> FROM
>     APPSTARTEVT tbl
>     left outer join DIM_deviceMakeModel ext6 on
> (ext6.DIM_ID=tbl.devicemakemodel)
>     left outer join DIM_devicePlatformType ext7 on
> (ext7.DIM_ID=tbl.deviceplatformtype)
>     left outer join DIM_deviceVersion ext8 on
> (ext8.DIM_ID=tbl.deviceversion)
>     left outer join DIM_operator ext9 on (ext9.DIM_ID=tbl.operator)
> ORDER BY
>     tbl.id ASC
> 
> throws;
> 
> >[Error] Script lines: 1-20 -------------------------
>  ERROR: Node 2 has aborted execution, cause is:
> com.edb.gridsql.exception.XDBServerException :
> java.lang.NullPointerException
> QUERY: SELECT "TMPTT6624_1"."deviceplatformtype" AS
> "deviceplatformtype","TMPTT6624_1"."XSERIALID0" AS
> "XSERIALID0","TMPTT6624_1"."XONODEID0" AS "XONODEID0" FROM
> "TMPTT6624_1"
> LEFT OUTER JOIN "dim_deviceplatformtype" "ext7" ON ("ext7"."dim_id" =
> "TMPTT6624_1"."deviceplatformtype")  WHERE "ext7"."dim_id" IS NULL
>  Line: 1 
> 
>  [Executed: 2/4/13 11:07:08 PM PST ] [Execution: 0/ms]
> 
> 
> exception.
> 
> Is there anything i am missing.

Why the query is different in Exception?
Can you try with 
SELECT
     tbl.id,
     tbl.day,
     tbl.week,
     tbl.appfailure,
     tbl.appname,
     tbl.deviceid,
     ext6.DIM_NAME,
     tbl.starttime
 FROM
     APPSTARTEVT tbl
     left outer join DIM_deviceMakeModel ext6 on
    (ext6.DIM_ID=tbl.devicemakemodel)
    ORDER BY   tbl.id ASC

Also as Pavel has pointed, send this to General mailing list. 

With Regards,
Amit Kapila.



-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (4+ messages)  latest in thread

Message-ID: <003c01ce03ba$b379afe0$1a6d0fa0$@kapila@huawei.com>
Permalink:  ../003c01ce03ba$b379afe0$1a6d0fa0$@kapila@huawei.com/
Also on:    postgresql.org/message-id/003c01ce03ba$b379afe0$1a6d0fa0$@kapila@huawei.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: amit.kapila@huawei.com, nvardar@carrieriq.com, pgsql-general@postgresql.org
  Subject: Re: [BUGS] BUG #7850: left outer join is not working or I didn't contruct the	query properly
  In-Reply-To: <003c01ce03ba$b379afe0$1a6d0fa0$@kapila@huawei.com>
  References: <E1U2cey-0004DC-QS@wrigleys.postgresql.org> <003c01ce03ba$b379afe0$1a6d0fa0$@kapila@huawei.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox