You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Steven Phillips (JIRA)" <ji...@apache.org> on 2015/04/10 21:05:15 UTC

[jira] [Updated] (DRILL-1627) Writer needs to be transactional

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

Steven Phillips updated DRILL-1627:
-----------------------------------
    Fix Version/s:     (was: 0.9.0)
                   1.0.0

> Writer needs to be transactional
> --------------------------------
>
>                 Key: DRILL-1627
>                 URL: https://issues.apache.org/jira/browse/DRILL-1627
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Writer
>         Environment: embedded drill invoked via sqlline under Eclipse on OSX
>            Reporter: Chris Westin
>            Assignee: Steven Phillips
>             Fix For: 1.0.0
>
>
> Tried to do a CTAS which failed for unknown reasons. Output starts out looking OK, but then gets an error:
> 0: jdbc:drill:zk=local> create table donuts_parquet as select * from `donuts.json`;
> create table donuts_parquet as select * from `donuts.jso 
> n`;
> +------------+---------------------------+
> |  Fragment  | Number of records written |
> +------------+---------------------------+
> | 0_0        | 5                         |
> Query failed: Failure while running fragment.
> 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)
> 0: jdbc:drill:zk=local> 
> No indication of what caused the failure. But the non-zero "Number of records written" would seem to imply success. I checked the directory this workspace is configured to use, and while it did create the parquet file, it is zero sized:
> wormsign:json cwestin$ ls
> donuts.json	donuts_parquet/
> wormsign:json cwestin$ ls donuts_parquet
> 0_0_0.parquet
> wormsign:json cwestin$ ls -l donuts_parquet
> total 0
> -rw-r--r--  1 cwestin  staff  0 Oct 31 16:06 0_0_0.parquet
> wormsign:json cwestin$



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