Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.8.0
-
None
Description
0: jdbc:drill:schema=dfs> select c_integer, c_bigint, c_date, c_time, c_varchar from j4 where c_bigint is null; +------------+------------+------------+------------+------------+ | c_integer | c_bigint | c_date | c_time | c_varchar | +------------+------------+------------+------------+------------+ +------------+------------+------------+------------+------------+ No rows selected (0.126 seconds) 0: jdbc:drill:schema=dfs> create table ctas_t6(c1,c2,c3,c4,c5) as select c_integer, c_bigint, c_date, c_time, c_varchar from j4 where c_bigint is null; +------------+---------------------------+ | Fragment | Number of records written | +------------+---------------------------+ | 0_0 | 0 | +------------+---------------------------+ 1 row selected (0.214 seconds) 0: jdbc:drill:schema=dfs> select * from ctas_t6; Query failed: IndexOutOfBoundsException: Index: 0, Size: 0 Error: exception while executing query: Failure while executing query. (state=,code=0)
parquet file was not created, but directory was:
[Mon Apr 06 09:03:41 root@/mapr/vmarkman.cluster.com/drill/testdata/joins/ctas_t6 ] # pwd /mapr/vmarkman.cluster.com/drill/testdata/joins/ctas_t6 [Mon Apr 06 09:03:45 root@/mapr/vmarkman.cluster.com/drill/testdata/joins/ctas_t6 ] # ls -l total 0
Attachments
Attachments
Issue Links
- is duplicated by
-
DRILL-2410 CTAS has issues when the underlying query returns 0 results
- Closed