Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,15 @@ default List<PartitionNameWithVersion> getPartitionNamesWithVersionByFilter(Meta

Set<HivePrivilegeInfo> listTablePrivileges(MetastoreContext metastoreContext, String databaseName, String tableName, PrestoPrincipal principal);

long lock(MetastoreContext metastoreContext, String databaseName, String tableName);
default long lock(MetastoreContext metastoreContext, String databaseName, String tableName)
{
throw new UnsupportedOperationException();
}

void unlock(MetastoreContext metastoreContext, long lockId);
default void unlock(MetastoreContext metastoreContext, long lockId)
{
throw new UnsupportedOperationException();
}

default void setPartitionLeases(MetastoreContext metastoreContext, String databaseName, String tableName, Map<String, String> partitionNameToLocation, Duration leaseDuration)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,18 +507,6 @@ public void revokeTablePrivileges(MetastoreContext metastoreContext, String data
throw new UnsupportedOperationException();
}

@Override
public long lock(MetastoreContext metastoreContext, String databaseName, String tableName)
{
throw new UnsupportedOperationException();
}

@Override
public void unlock(MetastoreContext metastoreContext, long lockId)
{
throw new UnsupportedOperationException();
}

private Partition getPartitionFromInMemoryMap(MetastoreContext metastoreContext, PartitionName name)
{
com.facebook.presto.hive.metastore.Partition partition = partitions.get(name);
Expand Down