Skip to content

Commit

Permalink
Refactered.
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed May 1, 2018
1 parent a44f4bf commit ca95daa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ibis/mapd/compiler.py
Expand Up @@ -213,8 +213,8 @@ class MapDDialect(compiles.Dialect):
)
)


@rewrites(ops.HLLCardinality)
def _approx_count_distinct(expr):
left, right = expr.op().args
return left.div(right).floor()
_add_methods(
ir.StringValue, dict(
byte_length=_unary_op('length', mapd_ops.ByteLength)
)
)

0 comments on commit ca95daa

Please sign in to comment.