[
https://issues.apache.org/jira/browse/DRILL-4398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15219714#comment-15219714
]
Devender Yadav edited comment on DRILL-4398 at 3/31/16 10:32 AM:
------------------------------------------------------------------
Observed similar issue with *SQL Server*.
Query: select t1.num_tiny, t2.num_small from mssql.dbo.`test01` t1 join
mssql.dbo.`test02` t2 on t1.num_int = t2.num_int;
{quote}
Error: SYSTEM ERROR: IllegalStateException: Memory was leaked by query. Memory
leaked: (73728)
Allocator(op:0:0:3:JdbcSubScan) 1000000/73728/569344/10000000000
(res/actual/peak/limit)
{quote}
I want to add one more observation.
If I create a different plugin with same configuration
Say SQL Server plugin name is mssql. I created mssql1 with same configuration
and modified query with mssql1 plugin name on 2nd table.
select t1.num_tiny, t2.num_small from mssql.dbo.`test01` t1 join
mssql1.dbo.`test02` t2 on t1.num_int = t2.num_int;
This query returned expected output successfully.
was (Author: dev17892):
Observed similar issue with SQL Server.
Query: select t1.num_tiny, t2.num_small from mssql.dbo.`test01` t1 join
mssql.dbo.`test02` t2 on t1.num_int = t2.num_int;
Error: SYSTEM ERROR: IllegalStateException: Memory was leaked by query. Memory
leaked: (73728)
Allocator(op:0:0:3:JdbcSubScan) 1000000/73728/569344/10000000000
(res/actual/peak/limit)
I want to add one more observation.
If I create a different plugin with same configuration
Say SQL Server plugin name is mssql. I created mssql1 with same configuration
and modified query with mssql1 plugin name on 2nd table.
select t1.num_tiny, t2.num_small from mssql.dbo.`test01` t1 join
mssql1.dbo.`test02` t2 on t1.num_int = t2.num_int;
This query returned expected output successfully.
> SYSTEM ERROR: IllegalStateException: Memory was leaked by query
> ---------------------------------------------------------------
>
> Key: DRILL-4398
> URL: https://issues.apache.org/jira/browse/DRILL-4398
> Project: Apache Drill
> Issue Type: Bug
> Components: Storage - JDBC
> Affects Versions: 1.5.0
> Reporter: N Campbell
> Assignee: Taras Supyk
>
> Several queries fail with memory leaked errors
> select tjoin2.rnum, tjoin1.c1, tjoin2.c1 as c1j2, tjoin2.c2 as c2j2 from
> postgres.public.tjoin1 full outer join postgres.public.tjoin2 on tjoin1.c1 =
> tjoin2.c1
> select tjoin1.rnum, tjoin1.c1, tjoin2.c1 as c1j2, tjoin2.c2 from
> postgres.public.tjoin1, lateral ( select tjoin2.c1, tjoin2.c2 from
> postgres.public.tjoin2 where tjoin1.c1=tjoin2.c1) tjoin2
> SYSTEM ERROR: IllegalStateException: Memory was leaked by query. Memory
> leaked: (40960)
> Allocator(op:0:0:3:JdbcSubScan) 1000000/40960/135168/10000000000
> (res/actual/peak/limit)
> create table TJOIN1 (RNUM integer not null , C1 integer, C2 integer);
> insert into TJOIN1 (RNUM, C1, C2) values ( 0, 10, 15);
> insert into TJOIN1 (RNUM, C1, C2) values ( 1, 20, 25);
> insert into TJOIN1 (RNUM, C1, C2) values ( 2, NULL, 50);
> create table TJOIN2 (RNUM integer not null , C1 integer, C2 char(2));
> insert into TJOIN2 (RNUM, C1, C2) values ( 0, 10, 'BB');
> insert into TJOIN2 (RNUM, C1, C2) values ( 1, 15, 'DD');
> insert into TJOIN2 (RNUM, C1, C2) values ( 2, NULL, 'EE');
> insert into TJOIN2 (RNUM, C1, C2) values ( 3, 10, 'FF');
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)