527528529530531532533534535536537
stats.setNumBytes(getTableVolume(query.systemConf, finalOutputDir)); tableDescTobeCreated.setStats(stats); query.setResultDesc(tableDescTobeCreated); catalog.createTable(tableDescTobeCreated); } } private class InsertTableHook implements QueryHook {
567568569570571572573574575576577
stats.setNumBytes(volume); finalTable.setStats(stats); if (insertNode.hasTargetTable()) { catalog.dropTable(insertNode.getTableName()); catalog.createTable(finalTable); } query.setResultDesc(finalTable); } }