m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin <marcin.j.chrzanowski@gmail.com>2020-01-28 01:42:28 +0100
committerGitHub <noreply@github.com>2020-01-28 01:42:28 +0100
commitbf239e90080de1ddab4e0d03619ba2c17dea53bb (patch)
tree522316ead8edef86287a402546702ebf14af0e6b
parentdf8beda9b8d688511ebcc4bf90c7219a83accdf0 (diff)
parent6a89fd8a83537535cd88f9a549bc42168e4d0e5b (diff)
Merge pull request #133 from m-chrzan/to-set
To set
-rw-r--r--build.gradle1
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 143bae9..dcb27c7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -163,6 +163,7 @@ task runInterpreter(type: JavaExec) {
task runQuerySigner(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'pl.edu.mimuw.cloudatlas.querysigner.QuerySigner'
+ systemProperty 'java.rmi.server.hostname', hostname()
systemProperty 'query_signer_hostname', querySignerHostname()
systemProperty 'public_key_file', publicKeyFilename()
systemProperty 'private_key_file', privateKeyFilename()
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);