phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-1705) implement ARRAY_APPEND built in function
Date Tue, 07 Apr 2015 02:37:12 GMT


James Taylor commented on PHOENIX-1705:

Your patch is looking good. For the null case, you never want to throw a type mismatch exception.
Instead, just skip the isCoercibleTo check and the maxLength check. Keep in mind that a descending
sort order inverts all the bits, so if you want to look at it as an object (in the debugger
or in code), you'd need to invert it back. The issue you found with PDataType.pad() is a good
one. You should add SortOrder as an argument to this method (using SortOrder.getDefault()
as the default for existing calls) and do the right thing in the case of a SortOrder of DESC.
Notice we have a StringUtil.INVERTED_SPACE_UTF8 which is what would need to be used in the
Arrays.fill() if sortOrder==SortOrder.DESC in the PChar.pad() call.

[~ramkrishna] is going to be your mentor, so please @ mention him for reviews going forward.

> implement ARRAY_APPEND built in function
> ----------------------------------------
>                 Key: PHOENIX-1705
>                 URL:
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Dumindu Buddhika
>            Assignee: Dumindu Buddhika
>         Attachments: PHOENIX-1705_implement_ARRAY_APPEND_built_in_function.patch, PHOENIX-1705_implement_ARRAY_APPEND_built_in_function.patch,
PHOENIX-1705_implement_ARRAY_APPEND_built_in_function1.patch, PHOENIX-1705_implement_ARRAY_APPEND_built_in_function10.patch,
PHOENIX-1705_implement_ARRAY_APPEND_built_in_function11.patch, PHOENIX-1705_implement_ARRAY_APPEND_built_in_function2.patch,
PHOENIX-1705_implement_ARRAY_APPEND_built_in_function3.patch, PHOENIX-1705_implement_ARRAY_APPEND_built_in_function4.patch,
PHOENIX-1705_implement_ARRAY_APPEND_built_in_function5.patch, PHOENIX-1705_implement_ARRAY_APPEND_built_in_function6.patch,
PHOENIX-1705_implement_ARRAY_APPEND_built_in_function7.patch, PHOENIX-1705_implement_ARRAY_APPEND_built_in_function8.patch,

This message was sent by Atlassian JIRA

View raw message