m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-28 00:44:42 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-28 00:44:42 +0100
commit67303cfe22770fe7110841d6d3609657fed218c0 (patch)
tree62c7021610e6e15e9866192f3f173f45735fd4cf /src/main
parentdf8beda9b8d688511ebcc4bf90c7219a83accdf0 (diff)
Keep contacts a set
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java2
1 files changed, 1 insertions, 1 deletions
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);