You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by ja...@apache.org on 2017/09/28 15:28:10 UTC

carbondata git commit: [CARBONDATA-1531] Format module should support BOOLEAN

Repository: carbondata
Updated Branches:
  refs/heads/master 28f78b2fc -> b221c9826


[CARBONDATA-1531] Format module should support BOOLEAN

format module support Boolean data type when I was developing Boolean function, and there are some error in CI after push request into github. So format module should support Boolean.

add Boolean data type
add BOOL_BYTE in Encoding

This closes #1392


Project: http://git-wip-us.apache.org/repos/asf/carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/carbondata/commit/b221c982
Tree: http://git-wip-us.apache.org/repos/asf/carbondata/tree/b221c982
Diff: http://git-wip-us.apache.org/repos/asf/carbondata/diff/b221c982

Branch: refs/heads/master
Commit: b221c9826fce6f92a25ca2af8de50de6c67aece4
Parents: 28f78b2
Author: xubo245 <60...@qq.com>
Authored: Thu Sep 28 11:06:45 2017 +0800
Committer: Jacky Li <ja...@qq.com>
Committed: Thu Sep 28 23:27:44 2017 +0800

----------------------------------------------------------------------
 format/src/main/thrift/schema.thrift | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/carbondata/blob/b221c982/format/src/main/thrift/schema.thrift
----------------------------------------------------------------------
diff --git a/format/src/main/thrift/schema.thrift b/format/src/main/thrift/schema.thrift
index de1a5aa..7869378 100644
--- a/format/src/main/thrift/schema.thrift
+++ b/format/src/main/thrift/schema.thrift
@@ -32,6 +32,7 @@ enum DataType {
 	DECIMAL = 5,
 	TIMESTAMP = 6,
 	DATE = 7,
+	BOOLEAN = 8,
 	ARRAY = 20,
 	STRUCT = 21,
 }
@@ -52,7 +53,8 @@ enum Encoding{
 	ADAPTIVE_DELTA_INTEGRAL = 8; // Identifies that a column is encoded using AdaptiveDeltaIntegralCodec
 	RLE_INTEGRAL = 9;     // Identifies that a column is encoded using RLECodec
 	DIRECT_STRING = 10;   // Stores string value and string length separately in page data
-  ADAPTIVE_FLOATING = 11; // Identifies that a column is encoded using AdaptiveFloatingCodec
+	ADAPTIVE_FLOATING = 11; // Identifies that a column is encoded using AdaptiveFloatingCodec
+	BOOL_BYTE = 12;   // Identifies that a column is encoded using BooleanPageCodec
 }
 
 enum PartitionType{