Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix locking of non-partitioned transactional tables
Without the fix we were using partition locking API in HMS even for non-partitioned tables. It happened if during execution we successfully completed predicate pushdown flow. Then in HiveTableHandle we had non-empty partitions list. It contained a single element with synthetic HivePartition object using UNPARTITIONED_ID id. It is used to pass information about bucket filtering. With the fix we are detecting such case in getValidWriteIds and locking whole table instead.
- Loading branch information