Skip to content

Commit 42daa1b

Browse files
committed
fixes
1 parent 2529109 commit 42daa1b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

python/datafusion/expr.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102

103103
__all__ = [
104104
"Expr",
105-
"RawExpr",
106105
"Column",
107106
"Literal",
108107
"BinaryExpr",
@@ -198,11 +197,6 @@ def __init__(self, expr: expr_internal.RawExpr) -> None:
198197
"""This constructor should not be called by the end user."""
199198
self.expr = expr
200199

201-
@property
202-
def raw_expr(self) -> expr_internal.RawExpr:
203-
"""Returns the underlying RawExpr instance."""
204-
return self.expr
205-
206200
def to_variant(self) -> Any:
207201
"""Convert this expression into a python object if possible."""
208202
return self.expr.to_variant()

python/tests/test_wrapper_coverage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ def missing_exports(internal_obj, wrapped_obj) -> None:
3636
for attr in dir(internal_obj):
3737
if attr in ["_global_ctx"]:
3838
continue
39-
39+
4040
# Check if Raw* classes have corresponding wrapper classes
4141
if attr.startswith("Raw"):
4242
base_class = attr[3:] # Remove "Raw" prefix
43-
assert hasattr(wrapped_obj, base_class), f"Missing implementation for {attr}"
43+
assert hasattr(wrapped_obj, base_class)
4444
continue
4545

46+
assert attr in dir(wrapped_obj)
47+
4648
internal_attr = getattr(internal_obj, attr)
4749
wrapped_attr = getattr(wrapped_obj, attr)
4850

0 commit comments

Comments
 (0)