private void ensureTableToCompactIsNative() {
    if (sourceTab != null) {
      String storageHandler = sourceTab.getParameters().get(hive_metastoreConstants.META_TABLE_STORAGE);
      if (storageHandler != null) {
        String message =
            "Table " + sourceTab.getTableName() + " has a storage handler (" + storageHandler + "). Failing compaction for this non-native table.";
        LOG.error(message);
        throw new RuntimeException(message);
      }
    }
  }
Part of Create operation. Insert-only compaction tables copy source tables' serde.
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactionQueryBuilderForInsertOnly.java