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

    https://github.com/apache/phoenix/pull/9#discussion_r17097873
  
    --- Diff: 
phoenix-core/src/it/java/org/apache/phoenix/end2end/EvaluationOfORIT.java ---
    @@ -0,0 +1,203 @@
    +package org.apache.phoenix.end2end;
    +
    + 
    +import static org.apache.phoenix.util.TestUtil.ROW5;
    +import static org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;
    +import static org.junit.Assert.*;
    +
    + 
    +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.Properties;
    +
    +import org.apache.phoenix.util.PhoenixRuntime;
    +import org.junit.Before;
    +import org.junit.Test;
    +
    +public class EvaluationOfORIT extends BaseClientManagedTimeIT{
    +   private static final String tenantId = getOrganizationId();
    +   private long ts;
    +   private Date date;
    +   
    +   @Before
    +        public void initTable() throws Exception {
    +            ts = nextTimestamp();
    +            initATableValues(tenantId, getDefaultSplits(tenantId), 
date=new Date(System.currentTimeMillis()), ts);        
    +        }
    +   
    +   @Test
    +   public void testPKOrNotPKInOREvaluation() throws SQLException {
    +            Connection conn = DriverManager.getConnection(getUrl());
    +            String create = "CREATE TABLE DIE ( ID INTEGER NOT NULL 
PRIMARY KEY,NAME VARCHAR(50) NOT NULL)";
    +            PreparedStatement createStmt = conn.prepareStatement(create);
    +            createStmt.executeUpdate();
    +            conn.close();
    --- End diff --
    
    There's really no need for an HBase managed time test to create new 
connections. Just create the one above and use it throughout.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to