[
https://issues.apache.org/jira/browse/PHOENIX-2060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14608070#comment-14608070
]
ramkrishna.s.vasudevan commented on PHOENIX-2060:
-------------------------------------------------
[~Dumindux]
Patch looks good to me. Nice tests.
Is there a specific test covering this ?
{code}
//When max length of a char array is not the max length of the element passed in
45 if (getElementExpr().getDataType().isFixedWidth() &&
getMaxLength() != null && getMaxLength() != array.getMaxLength()) {
46 array = new PhoenixArray(array, getMaxLength());
47 }
{code}
> Implement ARRAY_FILL built in function
> --------------------------------------
>
> Key: PHOENIX-2060
> URL: https://issues.apache.org/jira/browse/PHOENIX-2060
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: Dumindu Buddhika
> Assignee: Dumindu Buddhika
> Attachments: PHOENIX-2060-v1.patch
>
>
> ARRAY_FILL(element, length) - Returns an array initialized with supplied
> value and length.
> Eg:
> ARRAY_FILL(4, 5) -> ARRAY[4, 4, 4, 4, 4]
> ARRAY_FILL("a", 3) -> ARRAY"a", "a", "a"]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)