[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14876912#comment-14876912
 ] 

Till Westmann commented on ASTERIXDB-1102:
------------------------------------------

A variable-length length field sounds indeed like a good approach. It could 
have the additional advantage, that we could have only one length byte for 
strings that are shorter that 127 chars (but of course we'd pay some extra CPU 
to decode the length ..).

> Add a TEXT-like data type to enable storing the string longer than 64K
> ----------------------------------------------------------------------
>
>                 Key: ASTERIXDB-1102
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1102
>             Project: Apache AsterixDB
>          Issue Type: Improvement
>          Components: Data Model
>            Reporter: Jianfeng Jia
>            Assignee: Jianfeng Jia
>
> The current "String" type can't handle the string longer than 64K. The first 
> reason is that we are using java DataOutputStream to serialize it. It stores 
> the length using two bytes. However, it should serve the basic requirement 
> for "string" type.
> We need a special TEXT-like datatype to deal with long strings. And probably 
> add some search-related functionalities.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to