[ https://issues.apache.org/jira/browse/PHOENIX-2060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14608189#comment-14608189 ]
Dumindu Buddhika commented on PHOENIX-2060: ------------------------------------------- It is covered here in endtoend tests. char here has a maxlength of 15. {code} @Test public void testArrayFillFunctionChar() throws Exception { Connection conn = DriverManager.getConnection(getUrl()); initTables(conn); ResultSet rs; rs = conn.createStatement().executeQuery("SELECT ARRAY_FILL(char,4) FROM regions WHERE region_name = 'SF Bay Area'"); assertTrue(rs.next()); Object[] objects = new Object[]{"foo", "foo", "foo", "foo"}; Array array = conn.createArrayOf("CHAR", objects); assertEquals(array, rs.getArray(1)); assertFalse(rs.next()); } {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)