presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/metadata/MetadataDao.java/MetadataDao/getLockedTableId
class MetadataDao:    @SqlQuery("SELECT table_id FROM tables WHERE table_id = :tableId FOR UPDATE")
    Long getLockedTableId(@Bind("tableId") long tableId);