Apache DataFusion SQL Query Engine
ARROW-6473: Dictionary encoding format clarifications/future proofing
Micah Kornfieldad188d19296d
diff --git a/format/Message.fbs b/format/Message.fbsindex 2b3a12064b..7e8e6779aa 100644--- a/format/Message.fbs+++ b/format/Message.fbs@@ -74,7 +74,8 @@ table DictionaryBatch {data: RecordBatch;/// If isDelta is true the values in the dictionary are to be appended to a- /// dictionary with the indicated id+ /// dictionary with the indicated id. If isDelta is false this dictionary+ /// should replace the existing dictionary.isDelta: bool = false;}diff --git a/format/Schema.fbs b/format/Schema.fbsindex 1e39e8f32a..63a80b0676 100644--- a/format/Schema.fbs+++ b/format/Schema.fbs@@ -267,7 +267,10 @@ table KeyValue {/// ----------------------------------------------------------------------/// Dictionary encoding metadata-+/// Maintained for forwards compatibility, in the future+/// Dictionaries might be explicit maps between integers and values+/// allowing for non-contiguous index values+enum DictionaryKind : short { DenseArray }table DictionaryEncoding {/// The known dictionary id in the application where this data is used. In/// the file or streaming formats, the dictionary ids are found in the@@ -283,6 +286,8 @@ table DictionaryEncoding {/// is used to represent ordered categorical data, and we provide a way to/// preserve that metadata hereisOrdered: bool;++ dictionaryKind: DictionaryKind;}/// ----------------------------------------------------------------------