Chris Westin created DRILL-1627:
-----------------------------------

             Summary: misleading partial output on apparent DDL failure
                 Key: DRILL-1627
                 URL: https://issues.apache.org/jira/browse/DRILL-1627
             Project: Apache Drill
          Issue Type: Bug
          Components: Client - CLI
         Environment: embedded drill invoked via sqlline under Eclipse on OSX
            Reporter: Chris Westin


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)

Reply via email to