Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

Commit 2242f72

Browse files
author
Holger Stitz
committed
Add median aggregator
Caleydo/targid2#53
1 parent f2aa852 commit 2242f72

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

config.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"dburl": "sqlite:///${caleydo_server.dir}/plugins/targid_dummy/ab.sqlite",
33
"index": "(t.rowid-1) as _index",
4+
"agg_score": {
5+
"query": "%(agg)s(%(score)s)",
6+
"replacements": ["agg", "score"]
7+
},
48
"views": {
59
"a": {
610
"table": "a",
@@ -69,8 +73,8 @@
6973
},
7074
"score": {
7175
"idType": "IDTypeA",
72-
"query": "SELECT cast(a_id as text) as id, %(agg)s(%(score)s) as score FROM ab INNER JOIN b ON b.id = ab.b_id WHERE b.b_cat2 = :b_cat2 GROUP BY ab.a_id",
73-
"replacements": ["agg", "score"],
76+
"query": "SELECT cast(a_id as text) as id, %(agg_score)s as score FROM ab INNER JOIN b ON b.id = ab.b_id WHERE b.b_cat2 = :b_cat2 GROUP BY ab.a_id",
77+
"replacements": ["agg", "score", "agg_score"],
7478
"arguments": ["b_cat2"]
7579
}
7680
},

0 commit comments

Comments
 (0)