Skip to content

Commit

Permalink
Implement distance_centroid operator
Browse files Browse the repository at this point in the history
  • Loading branch information
MGlauer committed Jun 20, 2019
1 parent 1173c51 commit 4b1aea3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,8 @@ def parse_sqla_operator(raw_key, *operands):
return fun.concat(x,y)
if key in ['is not']:
return x.isnot(y)
if key in ['<->']:
return x.distance_centroid(y)
if key in ['getitem']:
if isinstance(y, Slice):
return x[parse_single(y.start, int):parse_single(y.stop, int)]
Expand Down

0 comments on commit 4b1aea3

Please sign in to comment.