phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-1759) PhoenixArray to have decent .toString() implementation.
Date Fri, 17 Apr 2015 04:40:59 GMT


James Taylor commented on PHOENIX-1759:

Thanks for reviewing, [~samarthjain] - please commit when you have a chance.

> PhoenixArray to have decent .toString() implementation.
> -------------------------------------------------------
>                 Key: PHOENIX-1759
>                 URL:
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Serhiy Bilousov
>            Assignee: Alex Warshavsky
>            Priority: Minor
>              Labels: Newbie
> In sqlline when query TABLE or VIEW with ARRAY[] datatype it shows long string as value
for the ARRAY[] column:
> {code}
> org.apache.phoenix.schema.types.PhoenixArray$PrimitiveIntPhoenixArray@d338d 
> {code}
> We getting the string like this because sqlline calls ResultSet.getString() on the array
> Even thou it more of an issue in sqlline than in PHOENIX, as the value that is returned
is a valid JDBC Array, adding a decent toString implementation in PhoenixArray (or each of
its subclasses) would allow user to see  something like \[ 1,2,3,555,666 \] of what we see

This message was sent by Atlassian JIRA

View raw message