From 67303cfe22770fe7110841d6d3609657fed218c0 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 28 Jan 2020 00:44:42 +0100 Subject: Keep contacts a set --- src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java index c9c6cc7..349c841 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java @@ -48,7 +48,7 @@ public class Stanik extends Module { private void setDefaultQueries() { String cardinalityQuery = "SELECT sum(cardinality) AS cardinality"; - String contactsQuery = "SELECT random(5, unfold(contacts)) AS contacts"; + String contactsQuery = "SELECT to_set(random(5, unfold(contacts))) AS contacts"; setDefaultQuery("&cardinality", cardinalityQuery); setDefaultQuery("&contacts", contactsQuery); -- cgit v1.2.3