tenthe commented on code in PR #2757:
URL: https://github.com/apache/streampipes/pull/2757#discussion_r1578977935


##########
streampipes-data-explorer/src/main/java/org/apache/streampipes/dataexplorer/DataExplorerSchemaManagement.java:
##########
@@ -126,34 +117,20 @@ public void deleteMeasurement(String elementId) {
   @Override
   public boolean deleteMeasurementByName(String measureName) {
     boolean isSuccess = false;
-    CouchDbClient couchDbClient = Utils.getCouchDbDataLakeClient();
-    List<JsonObject> docs = couchDbClient.view("_all_docs")
-                                         .includeDocs(true)
-                                         .query(JsonObject.class);
-
-    for (JsonObject document : docs) {
-      if (document.get("measureName")
-                  .toString()
+    List<DataLakeMeasure> docs = dataLakeStorage.getAllDataLakeMeasures();
+
+    for (var measure : docs) {
+      if (measure.getMeasureName()
                   .replace("\"", "")

Review Comment:
   Sorry, I am also not quite sure why they are there. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to