Skip to content

Commit

Permalink
Added support to thrift<=0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed May 11, 2018
1 parent 73c06a7 commit 5a7aa1f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/requirements-dev-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies:
- six
- sqlalchemy>=1.0.0,<1.1.15
- thriftpy<=0.3.9
- thrift<=0.9.3
- thrift<=0.10.0
- toolz
- xorg-libxpm
- xorg-libxrender
3 changes: 1 addition & 2 deletions ibis/expr/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import itertools
import collections

from functools import partial
from ibis.expr.schema import HasSchema, Schema

import ibis.common as com
Expand Down Expand Up @@ -2312,7 +2311,7 @@ class Pi(Constant):
The constant pi
"""
def output_type(self):
return partial(ir.FloatingScalar, dtype=dt.float64)
return functools.partial(ir.FloatingScalar, dtype=dt.float64)


class TemporalUnaryOp(UnaryOp):
Expand Down
1 change: 0 additions & 1 deletion ibis/mapd/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ class MapDDialect(compiles.Dialect):
rewrites(ops.Any, mapd_ops._any)
rewrites(ops.NotAll, mapd_ops._not_all)
rewrites(ops.NotAny, mapd_ops._not_any)
rewrites(ops.IfNull, mapd_ops.raise_unsupported_expr_error)

_add_methods(
ir.NumericValue, dict(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
'all': all_requires,
'develop:python_version < "3"': develop_requires + [
'thriftpy<=0.3.9',
'thrift<=0.9.3',
'thrift<=0.10.0',
'mock',
],
'develop:python_version >= "3"': develop_requires,
Expand Down

0 comments on commit 5a7aa1f

Please sign in to comment.