[
https://issues.apache.org/jira/browse/PHOENIX-5305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16860479#comment-16860479
]
Hadoop QA commented on PHOENIX-5305:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12971393/PHOENIX-5305-4.x-HBase-1.4.patch
against 4.x-HBase-1.4 branch at commit
0e60a901a0615354c3ca021e395959aa530f6e06.
ATTACHMENT ID: 12971393
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:green}+1 tests included{color}. The patch appears to include 126
new or modified tests.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:red}-1 release audit{color}. The applied patch generated 2 release
audit warnings (more than the master's current 0 warnings).
{color:red}-1 lineLengths{color}. The patch introduces the following lines
longer than 100:
+ private static void testExpression(LiteralExpression array,
LiteralExpression element, PhoenixArray expected)
+ PhoenixArray result = (PhoenixArray)
arrayAppendFunction.getDataType().toObject(ptr,
expressions.get(0).getSortOrder(), array.getMaxLength(), array.getScale());
+ private static void test(PhoenixArray array, Object element, PDataType
arrayDataType, Integer arrMaxLen, Integer arrScale, PDataType elementDataType,
Integer elemMaxLen, Integer elemScale, PhoenixArray expected, SortOrder
arraySortOrder, SortOrder elementSortOrder) throws SQLException {
+ arrayLiteral = LiteralExpression.newConstant(array, arrayDataType,
arrMaxLen, arrScale, arraySortOrder, Determinism.ALWAYS);
+ elementLiteral = LiteralExpression.newConstant(element,
elementDataType, elemMaxLen, elemScale, elementSortOrder, Determinism.ALWAYS);
+ test(arr, element, PDataType.fromTypeId(baseType.getSqlType() +
PDataType.ARRAY_TYPE_BASE), null, null, baseType, null, null, expected,
SortOrder.ASC, SortOrder.ASC);
+ test(arr, element, PDataType.fromTypeId(baseType.getSqlType() +
PDataType.ARRAY_TYPE_BASE), null, null, baseType, null, null, expected,
SortOrder.ASC, SortOrder.ASC);
+ test(arr, element, PDataType.fromTypeId(baseType.getSqlType() +
PDataType.ARRAY_TYPE_BASE), null, null, baseType, null, null, expected,
SortOrder.ASC, SortOrder.ASC);
+ test(arr, element, PDataType.fromTypeId(baseType.getSqlType() +
PDataType.ARRAY_TYPE_BASE), null, null, baseType, null, null, expected,
SortOrder.ASC, SortOrder.ASC);
+ Object[] o2 = new Object[]{new Float(2.3), new Float(7.9), new
Float(-9.6), new Float(2.3), new Float(8.9)};
{color:red}-1 core tests{color}. The patch failed these unit tests:
./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.index.MutableIndexIT
./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.IndexRebuildTaskIT
Test results:
https://builds.apache.org/job/PreCommit-PHOENIX-Build/2660//testReport/
Release audit warnings:
https://builds.apache.org/job/PreCommit-PHOENIX-Build/2660//artifact/patchprocess/patchReleaseAuditWarnings.txt
Console output:
https://builds.apache.org/job/PreCommit-PHOENIX-Build/2660//console
This message is automatically generated.
> Move expression function tests to the right folder
> --------------------------------------------------
>
> Key: PHOENIX-5305
> URL: https://issues.apache.org/jira/browse/PHOENIX-5305
> Project: Phoenix
> Issue Type: Improvement
> Reporter: Xinyi Yan
> Assignee: Xinyi Yan
> Priority: Trivial
> Attachments: PHOENIX-5305-4.x-HBase-1.3.patch,
> PHOENIX-5305-4.x-HBase-1.4.patch, PHOENIX-5305-4.x-HBase-1.5.patch,
> PHOENIX-5305.patch
>
>
> As [~chenglei] discovered on the other Jira, many phoenix expression function
> tests are not under the right folder. Put function tests under the package
> `{{org.apache.phoenix.expression.function}} ` instead of
> `{{org.apache.phoenix.expression}}` for better code quality.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)