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

    https://github.com/apache/phoenix/pull/402#discussion_r229563545
  
    --- Diff: phoenix-spark/src/it/java/org/apache/phoenix/spark/OrderByIT.java 
---
    @@ -0,0 +1,444 @@
    +package org.apache.phoenix.spark;
    +
    +import static org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;
    +import static org.junit.Assert.assertEquals;
    +import static org.junit.Assert.assertFalse;
    +import static org.junit.Assert.assertTrue;
    +
    +import java.sql.Connection;
    +import java.sql.Date;
    +import java.sql.DriverManager;
    +import java.sql.PreparedStatement;
    +import java.sql.ResultSet;
    +import java.sql.SQLException;
    +import java.util.List;
    +import java.util.Properties;
    +
    +import org.apache.phoenix.end2end.BaseOrderByIT;
    +import org.apache.phoenix.util.PropertiesUtil;
    +import org.apache.phoenix.util.QueryBuilder;
    +import org.apache.spark.sql.Dataset;
    +import org.apache.spark.sql.Row;
    +import org.apache.spark.sql.SQLContext;
    +import org.junit.Ignore;
    +import org.junit.Test;
    +
    +import com.google.common.collect.Lists;
    +
    +import scala.Option;
    +import scala.collection.JavaConverters;
    +
    +public class OrderByIT extends BaseOrderByIT {
    +
    +    @Override
    +    protected ResultSet executeQuery(Connection conn, QueryBuilder 
queryBuilder) throws SQLException {
    +        return SparkUtil.executeQuery(conn, queryBuilder, getUrl(), 
config);
    --- End diff --
    
    With more tests being added for phoenix-spark, we will be overriding this 
method each time. Can we have a base class with overridden methods (that use 
`SparkUtil` APIs) for all phoenix-spark tests instead?


---

Reply via email to