@Test
  public void testImportOrc() throws Exception {
    // Clear and Drop T and Tstage if exist
    runStatementOnDriver("drop table if exists T");
    runStatementOnDriver("drop table if exists Tstage");

    // Create source table - Tstage
    runStatementOnDriver("create table Tstage (a int, b int) stored" + " as orc tblproperties('transactional'='true')");

    // This creates an ORC data file with correct schema under table root
    runStatementOnDriver("insert into Tstage values(1,2),(3,4),(5,6)");
    final int[][] rows = { { 3 } };

    // Check Tstage statistics
    List<String> rsTStageProperties = runStatementOnDriver("show tblproperties Tstage");
    Assert.assertEquals("COLUMN_STATS_ACCURATE of Tstage table", true,
        rsTStageProperties.contains("COLUMN_STATS_ACCURATE\t{\"BASIC_STATS\":\"true\"}"));
    Assert.assertEquals("numRows of Tstage table", true, rsTStageProperties.contains("numRows\t3"));
    Assert.assertEquals("numFiles of Tstage table", true, rsTStageProperties.contains("numFiles\t1"));

    // Now we have an archive Tstage table
    runStatementOnDriver("export table Tstage to '" + getWarehouseDir() + "/1'");

    // Load T
    runStatementOnDriver("import table T from '" + getWarehouseDir() + "/1'");

    // Check basic stats in tblproperties T
    List<String> rsTProperties = runStatementOnDriver("show tblproperties T");
    Assert.assertEquals("COLUMN_STATS_ACCURATE of T table", false,
        rsTProperties.contains("COLUMN_STATS_ACCURATE\t{\"BASIC_STATS\":\"true\"}"));
    Assert.assertEquals("numRows of T table", false, rsTProperties.contains("numRows\t3"));

    // Verify the count(*) output
    List<String> rs = runStatementOnDriver("select count(*) from T");
    Assert.assertEquals("Rowcount of imported table", TestTxnCommands2.stringifyValues(rows), rs);
  }
This test will fail - MM export doesn't filter out aborted transaction data.
ql/src/test/org/apache/hadoop/hive/ql/TestTxnExIm.java