AcidUtils.setTransactionalTableScan(job, true);
AcidUtils.setTransactionalTableScan(jobClone, ts.getConf().isAcidTable()); AcidUtils.setAcidOperationalProperties(jobClone, ts.getConf().getAcidOperationalProperties());
AcidUtils.setTransactionalTableScan(jobClone, ts.getConf().isAcidTable()); AcidUtils.setAcidOperationalProperties(jobClone, ts.getConf().getAcidOperationalProperties());
AcidUtils.setTransactionalTableScan(job, ts.getConf().isAcidTable()); AcidUtils.setAcidOperationalProperties(job, ts.getConf().getAcidOperationalProperties());
AcidUtils.setTransactionalTableScan(job, ts.getConf().isAcidTable()); AcidUtils.setAcidOperationalProperties(job, ts.getConf().getAcidOperationalProperties());
/** * Helper method which sets config to read transactional (ACID) tables. Prerequisite is <i>job</i> * contains the table properties. * @param job */ public static void addACIDPropertiesIfNeeded(final JobConf job) { if (!AcidUtils.isTablePropertyTransactional(job)) { return; } AcidUtils.setTransactionalTableScan(job, true); // Add ACID related properties if (Utilities.isSchemaEvolutionEnabled(job, true) && job.get(IOConstants.SCHEMA_EVOLUTION_COLUMNS) != null && job.get(IOConstants.SCHEMA_EVOLUTION_COLUMNS_TYPES) != null) { // If the schema evolution columns and types are already set, then there is no additional conf to set. return; } // Get them from table properties and set them as schema evolution properties job.set(IOConstants.SCHEMA_EVOLUTION_COLUMNS, job.get(serdeConstants.LIST_COLUMNS)); job.set(IOConstants.SCHEMA_EVOLUTION_COLUMNS_TYPES, job.get(serdeConstants.LIST_COLUMN_TYPES)); } }