You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Daniel Barclay (Drill) (JIRA)" <ji...@apache.org> on 2015/06/09 19:06:01 UTC
[jira] [Commented] (DRILL-2832) JDBC : Client side exception when
applying flatten after a join on a repeated index
[ https://issues.apache.org/jira/browse/DRILL-2832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14579229#comment-14579229 ]
Daniel Barclay (Drill) commented on DRILL-2832:
-----------------------------------------------
Could you please try this again?
(Client-side error reporting has been changed, so the error message should actually report something now. Also, there doesn't seem to be any attached data file.)
> JDBC : Client side exception when applying flatten after a join on a repeated index
> -----------------------------------------------------------------------------------
>
> Key: DRILL-2832
> URL: https://issues.apache.org/jira/browse/DRILL-2832
> Project: Apache Drill
> Issue Type: Bug
> Components: Client - JDBC, Execution - Relational Operators
> Reporter: Rahul Challapalli
> Assignee: Daniel Barclay (Drill)
> Fix For: 1.2.0
>
>
> git.commit.id.abbrev=5cd36c5
> Query :
> {code}
> select flatten(t1.events) from `data.json` t1 inner join `data.json` t2 on t1.events[0].campaign_id = t2.events[2].campaign_id;
> +------------+
> | EXPR$0 |
> +------------+
> java.lang.RuntimeException: java.sql.SQLException: Failure while executing query.
> at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2514)
> at sqlline.SqlLine$TableOutputFormat.print(SqlLine.java:2148)
> at sqlline.SqlLine.print(SqlLine.java:1809)
> at sqlline.SqlLine$Commands.execute(SqlLine.java:3766)
> at sqlline.SqlLine$Commands.sql(SqlLine.java:3663)
> at sqlline.SqlLine.dispatch(SqlLine.java:889)
> at sqlline.SqlLine.begin(SqlLine.java:763)
> at sqlline.SqlLine.start(SqlLine.java:498)
> at sqlline.SqlLine.main(SqlLine.java:460)
> {code}
> The below 2 queries works fine
> {code}
> 1. Without Flatten : select * from `data.json` t1 inner join `data.json` t2 on t1.events[0].campaign_id = t2.events[2].campaign_id;
> 2. Join on simple column : select flatten(t1.events) a from `data.json` t1 inner join `data.json` t2 on t1.uid = t2.uid;
> {code}
> There is no error in the logs. I attached the data file. Let me know if you need anything.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)