You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Sangeeta Gulia (JIRA)" <ji...@apache.org> on 2018/03/23 09:36:00 UTC

[jira] [Created] (CARBONDATA-2272) Boolean Data loaded incorrectly when boolean column is dictionary include.

Sangeeta Gulia created CARBONDATA-2272:
------------------------------------------

             Summary: Boolean Data loaded incorrectly when boolean column is dictionary include.
                 Key: CARBONDATA-2272
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2272
             Project: CarbonData
          Issue Type: Bug
          Components: data-query
    Affects Versions: 1.3.0
            Reporter: Sangeeta Gulia


Steps to reproduce: 

sql(
s"""
|CREATE TABLE if not exists boolean_table(
|aa STRING, bb INT, cc BOOLEAN, dd BOOLEAN
|) STORED BY 'carbondata' TBLPROPERTIES ('DICTIONARY_INCLUDE'='cc')""".stripMargin)

sql("insert into boolean_table values('adam',11,true,true)")
sql("insert into boolean_table values('james',12,false,false)")
sql("insert into boolean_table values('smith',13,true,true)")

sql("select * from boolean_table ").show()

 

Output: 

+-----+---+----+-----+
| aa| bb| cc| dd|
+-----+---+----+-----+
|james| 12|true|false|
|smith| 13|true| true|
| adam| 11|true| true|
+-----+---+----+-----+

 

As can be seen from above output data in cc column is wrong.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)