From fd2b4ec4ac32db8a053c477ab3c40db64629ebcb Mon Sep 17 00:00:00 2001 From: Teddy Date: Wed, 31 Jul 2024 10:41:26 +0200 Subject: [PATCH] fix: fields in inspection query (#17224) --- .../java/org/openmetadata/service/jdbi3/TestCaseRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java index b983bf2bc8b..502c6ac069b 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java @@ -798,7 +798,7 @@ public class TestCaseRepository extends EntityRepository { @Transaction public TestCase addInspectionQuery(UriInfo uri, UUID testCaseId, String sql) { - TestCase original = get(uri, testCaseId, getFields(PATCH_FIELDS)); + TestCase original = get(uri, testCaseId, getFields("*")); TestCase updated = JsonUtils.readValue(JsonUtils.pojoToJson(original), TestCase.class) .withInspectionQuery(sql);