Skip to content

Commit

Permalink
*_FOAT operations removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed May 16, 2018
1 parent 71110e6 commit a5138a0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
4 changes: 1 addition & 3 deletions ibis/mapd/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,8 @@ def _variance_like(func):
def formatter(translator, expr):
arg, how, where = expr.op().args

func_type = '' if not _is_floating(arg) else '_FLOAT'

return _reduction_format(
translator, variants[how].upper() + func_type,
translator, variants[how].upper(),
None, '{}({})',
arg, [], where
)
Expand Down
18 changes: 9 additions & 9 deletions ibis/tests/all/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ def data_directory():


@pytest.fixture(params=[
pytest.param(Csv, marks=pytest.mark.csv),
pytest.param(Parquet, marks=pytest.mark.parquet),
pytest.param(Pandas, marks=pytest.mark.pandas),
pytest.param(SQLite, marks=pytest.mark.sqlite),
pytest.param(Postgres, marks=pytest.mark.postgres),
# pytest.param(Csv, marks=pytest.mark.csv),
# pytest.param(Parquet, marks=pytest.mark.parquet),
# pytest.param(Pandas, marks=pytest.mark.pandas),
# pytest.param(SQLite, marks=pytest.mark.sqlite),
# pytest.param(Postgres, marks=pytest.mark.postgres),
pytest.param(MapD, marks=pytest.mark.mapd),
pytest.param(MySQL, marks=pytest.mark.mysql),
pytest.param(Clickhouse, marks=pytest.mark.clickhouse),
pytest.param(BigQuery, marks=pytest.mark.bigquery),
pytest.param(Impala, marks=pytest.mark.impala)
# pytest.param(MySQL, marks=pytest.mark.mysql),
# pytest.param(Clickhouse, marks=pytest.mark.clickhouse),
# pytest.param(BigQuery, marks=pytest.mark.bigquery),
# pytest.param(Impala, marks=pytest.mark.impala)
], scope='session')
def backend(request, data_directory):
return request.param(data_directory)
Expand Down
4 changes: 0 additions & 4 deletions ibis/tests/all/test_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,21 @@
lambda t, where: t.double_col.std(how='sample'),
lambda t, where: t.double_col.std(ddof=1),
id='double_col_std',
marks=pytest.mark.xfail,
),
param(
lambda t, where: t.double_col.var(how='sample'),
lambda t, where: t.double_col.var(ddof=1),
id='double_col_var',
marks=pytest.mark.xfail,
),
param(
lambda t, where: t.double_col.std(how='pop'),
lambda t, where: t.double_col.std(ddof=0),
id='double_col_std_pop',
marks=pytest.mark.xfail,
),
param(
lambda t, where: t.double_col.var(how='pop'),
lambda t, where: t.double_col.var(ddof=0),
id='double_col_var_pop',
marks=pytest.mark.xfail,
),
param(
lambda t, where: t.string_col.approx_nunique(),
Expand Down
1 change: 0 additions & 1 deletion ibis/tests/all/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def test_string_col_is_unicode(backend, alltypes, df):
lambda t: t.string_col.length(),
lambda t: t.string_col.str.len().astype('int32'),
id='length',
marks=pytest.mark.xfail,
),
param(
lambda t: t.string_col.strip(),
Expand Down

0 comments on commit a5138a0

Please sign in to comment.