[
https://issues.apache.org/jira/browse/DRILL-3361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14600255#comment-14600255
]
Steven Phillips commented on DRILL-3361:
----------------------------------------
There are two problems:
1. There is no implementation of "newPartitionValue" function for the Bit type
This actually shouldn't be a problem, because we can use implicit cast and use
a type for which there is an implementation. However,
2. The workspace variables don't get properly initialized when an implicit cast
is used, which results in the NPE. This appears to be a more general problem.
I will filed DRILL-3362 for #2. Solving #1 will fix this issue as it pertains
to CTAS.
> CTAS Auto Partitionning : Fails when we use boolean as the partition type
> -------------------------------------------------------------------------
>
> Key: DRILL-3361
> URL: https://issues.apache.org/jira/browse/DRILL-3361
> Project: Apache Drill
> Issue Type: Bug
> Components: Query Planning & Optimization, Storage - Parquet
> Reporter: Rahul Challapalli
> Assignee: Jinfeng Ni
> Fix For: 1.1.0
>
> Attachments: error.log
>
>
> git.commit.id.abbrev=5a34d81
> The below query fails :
> {code}
> create table region partition by (r_bool) as select r.*, true r_bool from
> cp.`tpch/region.parquet` r;
> Error: SYSTEM ERROR:
> Fragment 0:0
> [Error Id: 0b6baadc-034b-47d2-9edd-f2c8752de571 on qa-node190.qa.lab:31010]
> (state=,code=0)
> {code}
> I attached the log file
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)