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

Commit

Permalink
Add median aggregator
Browse files Browse the repository at this point in the history
Caleydo/targid2#53
  • Loading branch information
Holger Stitz committed Nov 21, 2016
1 parent f2aa852 commit 2242f72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"dburl": "sqlite:///${caleydo_server.dir}/plugins/targid_dummy/ab.sqlite",
"index": "(t.rowid-1) as _index",
"agg_score": {
"query": "%(agg)s(%(score)s)",
"replacements": ["agg", "score"]
},
"views": {
"a": {
"table": "a",
Expand Down Expand Up @@ -69,8 +73,8 @@
},
"score": {
"idType": "IDTypeA",
"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",
"replacements": ["agg", "score"],
"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",
"replacements": ["agg", "score", "agg_score"],
"arguments": ["b_cat2"]
}
},
Expand Down

0 comments on commit 2242f72

Please sign in to comment.