diff --git a/api/src/main/java/marquez/db/models/DatasetData.java b/api/src/main/java/marquez/db/models/DatasetData.java index 78ee401283..92fb67617a 100644 --- a/api/src/main/java/marquez/db/models/DatasetData.java +++ b/api/src/main/java/marquez/db/models/DatasetData.java @@ -49,7 +49,7 @@ public Optional getDescription() { return Optional.ofNullable(description); } - public Optional getLastlifecycleState() { + public Optional getLastLifecycleState() { return Optional.ofNullable(lastLifecycleState); } diff --git a/api/src/test/java/marquez/db/LineageDaoTest.java b/api/src/test/java/marquez/db/LineageDaoTest.java index fe68ef7ae0..21a5ab0608 100644 --- a/api/src/test/java/marquez/db/LineageDaoTest.java +++ b/api/src/test/java/marquez/db/LineageDaoTest.java @@ -566,7 +566,7 @@ public void testGetDatasetDatalifecycleStateReturned() { Collections.singleton(row.getOutputs().get().get(0).getDatasetRow().getUuid())); assertThat(datasetData) - .extracting(ds -> ds.getLastlifecycleState().orElse("")) + .extracting(ds -> ds.getLastLifecycleState().orElse("")) .anyMatch(str -> str.contains("CREATE")); }