pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #7850: left outer join is not working or I didn't contruct the query properly
4+ messages / 4 participants
[nested] [flat]
* BUG #7850: left outer join is not working or I didn't contruct the query properly
@ 2013-02-05 07:09 nvardar@carrieriq.com
2013-02-05 14:45 ` Re: BUG #7850: left outer join is not working or I didn't contruct the query properly Pavel Stehule <pavel.stehule@gmail.com>
2013-02-05 16:06 ` Re: [BUGS] BUG #7850: left outer join is not working or I didn't contruct the query properly Amit Kapila <amit.kapila@huawei.com>
2013-02-05 16:45 ` Re: [BUGS] BUG #7850: left outer join is not working or I didn't contruct the query properly Alban Hertroys <haramrae@gmail.com>
0 siblings, 3 replies; 4+ messages in thread
From: nvardar@carrieriq.com @ 2013-02-05 07:09 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 7850
Logged by: Nadir Vardar
Email address: nvardar@carrieriq.com
PostgreSQL version: 9.0.10
Operating system: linux-gridsql
Description:
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.
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,
DIM_deviceMakeModel ext6,
DIM_devicePlatformType ext7,
DIM_deviceVersion ext8,
DIM_operator ext9
WHERE
tbl.devicemakemodel=ext6.DIM_ID AND tbl.deviceplatformtype=ext7.DIM_ID
AND tbl.deviceversion=
ext8.DIM_ID AND tbl.operator=ext9.DIM_ID
ORDER BY
tbl.id ASC
works btw...
Thanks.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #7850: left outer join is not working or I didn't contruct the query properly
2013-02-05 07:09 BUG #7850: left outer join is not working or I didn't contruct the query properly nvardar@carrieriq.com
@ 2013-02-05 14:45 ` Pavel Stehule <pavel.stehule@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: Pavel Stehule @ 2013-02-05 14:45 UTC (permalink / raw)
To: nvardar@carrieriq.com; +Cc: pgsql-bugs
Hello
this is not a bug report.
please, send your query to pg_general mailing list
probably better - ask on gridsql mailing list
Regards
Pavel Stehule
2013/2/5 <nvardar@carrieriq.com>:
> The following bug has been logged on the website:
>
> Bug reference: 7850
> Logged by: Nadir Vardar
> Email address: nvardar@carrieriq.com
> PostgreSQL version: 9.0.10
> Operating system: linux-gridsql
> Description:
>
> 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.
>
> 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,
> DIM_deviceMakeModel ext6,
> DIM_devicePlatformType ext7,
> DIM_deviceVersion ext8,
> DIM_operator ext9
> WHERE
> tbl.devicemakemodel=ext6.DIM_ID AND tbl.deviceplatformtype=ext7.DIM_ID
> AND tbl.deviceversion=
> ext8.DIM_ID AND tbl.operator=ext9.DIM_ID
> ORDER BY
> tbl.id ASC
>
> works btw...
> Thanks.
>
>
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [BUGS] BUG #7850: left outer join is not working or I didn't contruct the query properly
2013-02-05 07:09 BUG #7850: left outer join is not working or I didn't contruct the query properly nvardar@carrieriq.com
@ 2013-02-05 16:06 ` Amit Kapila <amit.kapila@huawei.com>
2 siblings, 0 replies; 4+ messages in thread
From: Amit Kapila @ 2013-02-05 16:06 UTC (permalink / raw)
To: nvardar@carrieriq.com; pgsql-bugs; +Cc: 'pgsql-general' <pgsql-general@postgresql.org>
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [BUGS] BUG #7850: left outer join is not working or I didn't contruct the query properly
2013-02-05 07:09 BUG #7850: left outer join is not working or I didn't contruct the query properly nvardar@carrieriq.com
@ 2013-02-05 16:45 ` Alban Hertroys <haramrae@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: Alban Hertroys @ 2013-02-05 16:45 UTC (permalink / raw)
To: Amit Kapila <amit.kapila@huawei.com>; +Cc: nvardar@carrieriq.com; pgsql-bugs; pgsql-general <pgsql-general@postgresql.org>
On 5 February 2013 17:06, Amit Kapila <amit.kapila@huawei.com> wrote:
> Tuesday, February 05, 2013 12:40 PM nvardar wrote:
> > 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]
>
Does this query work if you copy it from the exception message and execute
it in psql?
If so, then the problem is somewhere in the Java domain, between gridsql
and jdbc.
If not, you'll probably get a more informative error out of it ;)
--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2013-02-05 16:45 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-02-05 07:09 BUG #7850: left outer join is not working or I didn't contruct the query properly nvardar@carrieriq.com
2013-02-05 14:45 ` Pavel Stehule <pavel.stehule@gmail.com>
2013-02-05 16:06 ` Re: [BUGS] BUG #7850: left outer join is not working or I didn't contruct the query properly Amit Kapila <amit.kapila@huawei.com>
2013-02-05 16:45 ` Alban Hertroys <haramrae@gmail.com>
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