diff --git a/api/src/main/java/marquez/db/DatasetVersionDao.java b/api/src/main/java/marquez/db/DatasetVersionDao.java index 0f4d4d0fd5..1d606f40b8 100644 --- a/api/src/main/java/marquez/db/DatasetVersionDao.java +++ b/api/src/main/java/marquez/db/DatasetVersionDao.java @@ -277,7 +277,6 @@ LEFT JOIN ( ) f ON f.dataset_version_uuid = dv.uuid WHERE dv.namespace_name = :namespaceName AND dv.dataset_name = :datasetName - LIMIT :limit OFFSET :offset ), dataset_symlinks_names as ( SELECT DISTINCT dataset_uuid, name @@ -295,6 +294,7 @@ WHERE name NOT IN (SELECT name FROM dataset_symlinks_names) created_at, version, dataset_schema_version_uuid, fields, createdByRunUuid, schema_location, tags, dataset_version_uuid ORDER BY created_at DESC + LIMIT :limit OFFSET :offset """) List findAll(String namespaceName, String datasetName, int limit, int offset);