}
if (acidSinks != null && acidSinks.size() > 0) {
// We are writing to tables in an ACID compliant way, so we need to open a transaction
long txnId = ss.getCurrentTxn();
if (txnId == SessionState.NO_CURRENT_TXN) {
txnId = txnMgr.openTxn(userFromUGI);
ss.setCurrentTxn(txnId);
}
// Set the transaction id in all of the acid file sinks
if (acidSinks != null) {
for (FileSinkDesc desc : acidSinks) {