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

    https://github.com/apache/incubator-hawq/pull/846#discussion_r75242500
  
    --- Diff: src/test/feature/ManagementTool/test_hawq_register.cpp ---
    @@ -199,9 +199,121 @@ TEST_F(TestHawqRegister, TestNotHDFSPath) {
        util.execute("create table hawqregister(i int);");
        util.query("select * from hawqregister;", 0);
     
    -   EXPECT_EQ(1, Command::getCommandStatus("hawq register " + (string) 
HAWQ_DB + "hawqregister /hawq_register_hawq.paq"));
    +   EXPECT_EQ(1, Command::getCommandStatus("hawq register -d " + (string) 
HAWQ_DB + " -f /hawq_register_hawq.paq hawqregister"));
        util.query("select * from hawqregister;", 0);
     
        EXPECT_EQ(0, Command::getCommandStatus("hadoop fs -rm 
hdfs://localhost:8020/hawq_register_hawq.paq"));
        util.execute("drop table hawqregister;");
     }
    +
    +TEST_F(TestHawqRegister, TestUsage1ParquetRandomly) {
    +  SQLUtility util;
    +  string rootPath(util.getTestRootPath());
    +  string relativePath("/ManagementTool/test_hawq_register_hawq.paq");
    +  string filePath = rootPath + relativePath;
    +  EXPECT_EQ(0, Command::getCommandStatus("hadoop fs -put -f " + filePath + 
" hdfs://localhost:8020/hawq_register_hawq.paq"));
    +  util.execute("drop table if exists nt;");
    +  util.execute("create table nt(i int) with (appendonly=true, 
orientation=parquet);");
    +  EXPECT_EQ(0, Command::getCommandStatus("hawq register -d " + (string) 
HAWQ_DB + " -f hdfs://localhost:8020/hawq_register_hawq.paq nt"));
    +   util.query("select * from nt;", 3);
    +   util.execute("insert into nt values(1);");
    +   util.query("select * from nt;", 4);
    +  util.execute("drop table nt;");
    +}
    +
    +TEST_F(TestHawqRegister, TestUsage1ParquetRandomly2) {
    +  SQLUtility util;
    --- End diff --
    
    @ictmalili yes, I made a mistake here, I will update the commit soon.


---
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