You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Aman Sinha (JIRA)" <ji...@apache.org> on 2014/10/09 23:13:35 UTC

[jira] [Commented] (DRILL-1421) 3 way join over text files (no views) fails

    [ https://issues.apache.org/jira/browse/DRILL-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165751#comment-14165751 ] 

Aman Sinha commented on DRILL-1421:
-----------------------------------

This is happening in the planning phase where the Drill/Optiq planner gets stuck during the push project rule.  
 
	at org.eigenbase.sql.validate.SqlValidatorUtil.uniquify(SqlValidatorUtil.java:185)
	at org.eigenbase.sql.validate.SqlValidatorUtil.uniquify(SqlValidatorUtil.java:224)
	at org.eigenbase.rel.CalcRel.createProject(CalcRel.java:157)
	at org.eigenbase.rel.CalcRel.createProject(CalcRel.java:88)
	at org.eigenbase.rel.rules.PushProjector.createProjectRefsAndExprs(PushProjector.java:468)
	at org.eigenbase.rel.rules.PushProjector.convertProject(PushProjector.java:287)
	at org.apache.drill.exec.planner.logical.DrillPushProjectPastFilterRule.onMatch(DrillPushProjectPastFilterRule.java:82)
	at org.eigenbase.relopt.volcano.VolcanoRuleCall.onMatch(VolcanoRuleCall.java:223)
	at org.eigenbase.relopt.volcano.VolcanoPlanner.findBestExp(VolcanoPlanner.java:661)
	at net.hydromatic.optiq.tools.Programs$RuleSetProgram.run(Programs.java:165)
	at net.hydromatic.optiq.prepare.PlannerImpl.transform(PlannerImpl.java:273)
	at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel(DefaultSqlHandler.java:153)

I'll investigate this some more. 
Note that doing a SELECT *  over the same join conditions completes successfully: 

0: jdbc:drill:zk=local> select * from dfs.`/Users/asinha/data/rankings.tbl` r, dfs.`/Users/asinha/data/uservisits.tbl` u, dfs.`/Users/asinha/data/temp.tbl` t where r.columns[1]=u.columns[1] and r.columns[1] = t.columns[0];
+------------+------------+------------+
|  columns   |  columns0  |  columns1  |
+------------+------------+------------+
+------------+------------+------------+
No rows selected (3.143 seconds)

> 3 way join over text files (no views) fails
> -------------------------------------------
>
>                 Key: DRILL-1421
>                 URL: https://issues.apache.org/jira/browse/DRILL-1421
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Flow
>            Reporter: Rahul Challapalli
>            Priority: Critical
>         Attachments: error.txt, rankings.tbl, temp.tbl, uservisits.tbl
>
>
> git.commit.id.abbrev=1ce7c93
> The below query which joins 2 text files work
> {code}
> select r.columns[1] from rankings r, uservisits u where r.columns[1]=u.columns[1];
> {code}
> However the below query with a 3-way join over text files just hangs in sql line without throwing any error
> {code}
> select r.columns[1] from rankings r, uservisits u, `temp.tbl` t where r.columns[1]=u.columns[1] and r.columns[1] = t.columns[0];
> {code}
> Attached the error from the log file along with the data files



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)