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

    https://github.com/apache/phoenix/pull/210#discussion_r83795678
  
    --- Diff: 
phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexMetadataIT.java 
---
    @@ -568,4 +580,52 @@ public void testAsyncCreatedDate() throws Exception {
             assertTrue(d2.after(d1));
             assertFalse(rs.next());
         }
    +    
    +    @Test
    +    public void testAsyncRebuildTimestamp() throws Exception {
    +        long l0 = System.currentTimeMillis();
    +        Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
    +        Connection conn = DriverManager.getConnection(getUrl(), props);
    +        conn.setAutoCommit(false);
    +        String testTable = generateUniqueName();
    +
    +
    +        String ddl = "create table " + testTable  + " (k varchar primary 
key, v1 varchar, v2 varchar, v3 varchar)";
    +        PreparedStatement stmt = conn.prepareStatement(ddl);
    +        stmt.execute();
    +        String indexName = "R_ASYNCIND_" + generateUniqueName();
    +        
    +        ddl = "CREATE INDEX " + indexName + "1 ON " + testTable  + " (v1) 
";
    +        stmt = conn.prepareStatement(ddl);
    --- End diff --
    
    You can use createStatement than prepareStatement here.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to