public static Table createNewTableMetadataObject(ImportTableDesc tblDesc, boolean isRepl)
      throws SemanticException {
    Table newTable = new Table(tblDesc.getDatabaseName(), tblDesc.getTableName());
    //so that we know the type of table we are creating: acid/MM to match what was exported
    newTable.setParameters(tblDesc.getTblProps());
    if(tblDesc.isExternal() && AcidUtils.isTransactionalTable(newTable)) {
      if (isRepl) {
        throw new SemanticException("External tables may not be transactional: " +
            Warehouse.getQualifiedName(tblDesc.getDatabaseName(), tblDesc.getTableName()));
      } else {
        throw new AssertionError("Internal error: transactional properties not set properly"
            + tblDesc.getTblProps());
      }
    }
    return newTable;
  }
Create tasks for regular import, no repl complexity
@param tblDesc
@param partitionDescs
@param isPartSpecSet
@param replicationSpec
@param table
@param fromURI
@param fs
@param wh
ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java