Contributed by Calpont, InfiniDB Community Edition is an open source, scale-up analytics database engine for your data warehousing, business intelligence and read-intensive application needs. Enabled via MySQLTM and purpose-built for an analytical workload with column-oriented technology at its core, the multi-threaded capabilities of InfiniDB Community Edition fully encompass query, transactional support and bulk load operations.  So come on in, grab a download and get started.

             | 

Welcome, Guest
Username Password: Remember me

ERROR 138 (HY000): IDB-3012
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: ERROR 138 (HY000): IDB-3012

ERROR 138 (HY000): IDB-3012 1 year, 5 months ago #1302

  • Alexy
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hallo i'm trying to run this query on infinidb

SELECT *

FROM wgl
 left outer join lwa on wgl.wgl_id = lwa.wgl_id

WHERE lwa.lwa_id = (select min(lwa_id) from lwa where wgl.wgl_id = lwa.wgl_id);

here there are many lwa-tupel having the same wgl-id and i want the smallest one
but i recieve this error witch i dont understand

ERROR 138 (HY000): IDB-3012: Scalar filter and semi join are not from the same pair of tables.


and i cant find any thing on this error in google or infinidb forums or ducumentations

thanx for ur help

Re:ERROR 138 (HY000): IDB-3012 1 year, 5 months ago #1306

  • davestokes
  • OFFLINE
  • Expert Boarder
  • Posts: 116
  • Karma: 2
Hi Alexy,

Thank you for download and using Calpont InfiniDB. One of our engineers is looking into this and we will get back to you as soon as possible.

Re:ERROR 138 (HY000): IDB-3012 1 year, 5 months ago #1313

  • davestokes
  • OFFLINE
  • Expert Boarder
  • Posts: 116
  • Karma: 2
The query has some syntax that we don't currently support. We currently do not allow the comparison in blue below. The semi join is between the outer lwa result and the inner lwa result. We do not support a comparison between another outer table, only the on in the semi join.

SELECT *

FROM wgl
left outer join lwa on wgl.wgl_id = lwa.wgl_id

WHERE lwa.lwa_id = (select min(lwa_id) from lwa where wgl.wgl_id = lwa.wgl_id);

Using the outer lwa.wgl_id in the sub query filter is supported and is an equivalent query.

SELECT *

FROM wgl
left outer join lwa lwa_outer on wgl.wgl_id = lwa_outer.wgl_id

WHERE lwa.lwa_id = (select min(lwa_id) from lwa where lwa_outer.wgl_id = lwa.wgl_id);

Thanks.
  • Page:
  • 1
Time to create page: 0.37 seconds