asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Maxon (JIRA)" <>
Subject [jira] [Commented] (ASTERIXDB-1102) Add a TEXT-like data type to enable storing the string longer than 64K
Date Fri, 18 Sep 2015 20:48:04 GMT


Ian Maxon commented on ASTERIXDB-1102:

We just use a default type for the literal AFAIK. For example, once upon a time you would
say something like {"foo":42} and that'd be an int32, but it's an int64 now. There's ways
to express the fact that a literal should be of a certain type, like 42i32 vs 42i64, but of
course that'd be specific to ADM and not applicable to JSON. That's kind of why I couldn't
imagine a totally clean solution to this if there's some real performance difference between
string and text. If text turns out to just be like string with a wider length field though,
it might not even make sense to keep the old format around as something user visible, just
as long as we can read it in existing datasets. 

> Add a TEXT-like data type to enable storing the string longer than 64K
> ----------------------------------------------------------------------
>                 Key: ASTERIXDB-1102
>                 URL:
>             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

View raw message