Skip to content

Commit 25c3ad0

Browse files
committed
Clickbench
1 parent ba4327d commit 25c3ad0

File tree

4 files changed

+4
-21
lines changed

4 files changed

+4
-21
lines changed

pyvortex/clickbench.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# ruff: noqa: E501
23
import argparse
34
import json
45
import os.path

pyvortex/python/vortex/_lib/expr.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import vortex.expr as ve
55

66
@final
77
class Expr:
8-
def __eq__(self, other: ve.IntoExpr) -> Expr: ...
9-
def __ne__(self, other: ve.IntoExpr) -> Expr: ...
8+
def __eq__(self, other: ve.IntoExpr) -> Expr: ... # type: ignore[override]
9+
def __ne__(self, other: ve.IntoExpr) -> Expr: ... # type: ignore[override]
1010
def __lt__(self, other: ve.IntoExpr) -> Expr: ...
1111
def __le__(self, other: ve.IntoExpr) -> Expr: ...
1212
def __gt__(self, other: ve.IntoExpr) -> Expr: ...

pyvortex/python/vortex/polars_.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _polars_to_vortex(expr: dict) -> ve.Expr:
9898

9999
if "Function" in expr:
100100
expr = expr["Function"]
101-
inputs = [_polars_to_vortex(e) for e in expr["input"]]
101+
_inputs = [_polars_to_vortex(e) for e in expr["input"]]
102102

103103
fn = expr["function"]
104104
if "Boolean" in fn:

pyvortex/test/test_polars_.py

-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from collections.abc import Iterator
2-
31
import polars as pl
42
import pytest
53

@@ -33,19 +31,3 @@
3331
def test_exprs(polars: pl.Expr, vortex: ve.Expr):
3432
# Dump the clickbench filters
3533
assert polars_to_vortex(polars) == vortex
36-
37-
38-
def test_io_source():
39-
import polars as pl
40-
from polars.io.plugins import register_io_source
41-
42-
def _io_source(
43-
with_columns: list[str] | None,
44-
predicate: pl.Expr | None,
45-
n_rows: int | None,
46-
batch_size: int | None,
47-
) -> Iterator[pl.DataFrame]:
48-
yield from []
49-
50-
df = register_io_source(_io_source, schema=pl.Schema([("a", pl.Int64)]))
51-
df.collect()

0 commit comments

Comments
 (0)