public void setDynamicPartitionWrite(boolean t) {
    isDynamicPartitionWrite = t;
  }
Determine the type of lock to request for a given alter table type.
@param op Operation type from the alter table description
@return the write type this should use.
ql/src/java/org/apache/hadoop/hive/ql/hooks/WriteEntity.java