Ji Liu created ARROW-6484:
-----------------------------
Summary: [Java] Enable create indexType for DictionaryEncoding
according to dictionary value count
Key: ARROW-6484
URL: https://issues.apache.org/jira/browse/ARROW-6484
Project: Apache Arrow
Issue Type: Improvement
Components: Java
Reporter: Ji Liu
Assignee: Ji Liu
Currently, when create {{DictionaryEncoding}}, we need to specify indexType,
and it use Int(32, true) as default if this value is null.
Actually, when dictionary valueCount is small, we should use
Int(8,true)/Int(16,true) instead to reduce memory allocation.
This issue is about to provide API for creating indexType according to
valueCount and apply it to avro adapter for enum type.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)