[ 
https://issues.apache.org/jira/browse/PHOENIX-4981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16669588#comment-16669588
 ] 

ASF GitHub Bot commented on PHOENIX-4981:
-----------------------------------------

Github user ChinmaySKulkarni commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/402#discussion_r229561363
  
    --- Diff: 
phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelStatsDisabledIT.java
 ---
    @@ -41,4 +53,29 @@ public static final void doSetup() throws Exception {
         public static void tearDownMiniCluster() throws Exception {
             BaseTest.tearDownMiniClusterIfBeyondThreshold();
         }
    +
    +    protected ResultSet executeQuery(Connection conn, QueryBuilder 
queryBuilder) throws SQLException {
    +        PreparedStatement statement = 
conn.prepareStatement(queryBuilder.build());
    +        ResultSet rs = statement.executeQuery();
    +        return rs;
    +    }
    +
    +    protected ResultSet executeQueryThrowsException(Connection conn, 
QueryBuilder queryBuilder,
    +            String expectedPhoenixExceptionMsg, String 
expectedSparkExceptionMsg) {
    +        ResultSet rs = null;
    +        try {
    +            rs = executeQuery(conn, queryBuilder);
    +        }
    +        catch(Exception e) {
    +            
assertTrue(e.getMessage().contains(expectedPhoenixExceptionMsg));
    +        }
    +        return rs;
    --- End diff --
    
    Do we ever want code to reach here? Or do we want to `Assert.fail` if the 
exception doesn't occur?


> Add tests for ORDER BY, GROUP BY, salted tables using phoenix-spark
> -------------------------------------------------------------------
>
>                 Key: PHOENIX-4981
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4981
>             Project: Phoenix
>          Issue Type: Test
>            Reporter: Thomas D'Silva
>            Assignee: Thomas D'Silva
>            Priority: Major
>              Labels: spark
>         Attachments: PHOENIX-4981-4.x-HBase-1.3.patch
>
>
> See if its possible to reuse {{SaltedTableIT}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to