diff --git a/api/src/main/java/marquez/db/models/DatasetData.java b/api/src/main/java/marquez/db/models/DatasetData.java index d2215b178c..92fb67617a 100644 --- a/api/src/main/java/marquez/db/models/DatasetData.java +++ b/api/src/main/java/marquez/db/models/DatasetData.java @@ -39,7 +39,7 @@ public class DatasetData implements NodeData { @NonNull ImmutableSet tags; @Nullable Instant lastModifiedAt; @Nullable String description; - @Nullable String lastlifecycleState; + @Nullable String lastLifecycleState; public Optional getLastModifiedAt() { return Optional.ofNullable(lastModifiedAt); @@ -49,8 +49,8 @@ public Optional getDescription() { return Optional.ofNullable(description); } - public Optional getLastlifecycleState() { - return Optional.ofNullable(lastlifecycleState); + public Optional getLastLifecycleState() { + return Optional.ofNullable(lastLifecycleState); } @JsonIgnore 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")); }