drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-2832) JDBC : Client side exception when applying flatten after a join on a repeated index
Date Tue, 05 May 2015 13:38:27 GMT

     [ https://issues.apache.org/jira/browse/DRILL-2832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jacques Nadeau updated DRILL-2832:
----------------------------------
    Fix Version/s: 1.2.0

> 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)

Mime
View raw message