You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Aman Sinha (JIRA)" <ji...@apache.org> on 2014/12/17 03:00:17 UTC
[jira] [Updated] (DRILL-1873) CTAS in parquet format writes
incorrect boolean value
[ https://issues.apache.org/jira/browse/DRILL-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aman Sinha updated DRILL-1873:
------------------------------
Attachment: 0001-DRILL-1873-Fix-boolean-type-writing-in-parquet-recor.patch
The ParquetOutputRecordWriter was not populating the holder for boolean types. Fixed it in the template class. Added unit test. [~jaltekruse] could you pls review ?
> CTAS in parquet format writes incorrect boolean value
> -----------------------------------------------------
>
> Key: DRILL-1873
> URL: https://issues.apache.org/jira/browse/DRILL-1873
> Project: Apache Drill
> Issue Type: Bug
> Reporter: Aman Sinha
> Assignee: Aman Sinha
> Attachments: 0001-DRILL-1873-Fix-boolean-type-writing-in-parquet-recor.patch
>
>
> CTAS statement below is writing False instead of True.
> {code}
> 0: jdbc:drill:zk=local> create table foo10 as select true from cp.`tpch/region.parquet`;
> +------------+---------------------------+
> | Fragment | Number of records written |
> +------------+---------------------------+
> | 0_0 | 5 |
> +------------+---------------------------+
> 1 row selected (0.218 seconds)
> 0: jdbc:drill:zk=local> select * from foo10;
> +------------+
> | EXPR$0 |
> +------------+
> | false |
> | false |
> | false |
> | false |
> | false |
> +------------+
> 5 rows selected (0.055 seconds)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)