Skip to content

Commit 80611e6

Browse files
committed
Renamed Expr to RawExpr
1 parent d72f560 commit 80611e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python/datafusion/expr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class Expr:
193193
:ref:`Expressions` in the online documentation for more information.
194194
"""
195195

196-
def __init__(self, expr: expr_internal.Expr) -> None:
196+
def __init__(self, expr: expr_internal.RawExpr) -> None:
197197
"""This constructor should not be called by the end user."""
198198
self.expr = expr
199199

@@ -383,7 +383,7 @@ def literal(value: Any) -> Expr:
383383
value = pa.scalar(value, type=pa.string_view())
384384
if not isinstance(value, pa.Scalar):
385385
value = pa.scalar(value)
386-
return Expr(expr_internal.Expr.literal(value))
386+
return Expr(expr_internal.RawExpr.literal(value))
387387

388388
@staticmethod
389389
def string_literal(value: str) -> Expr:
@@ -398,13 +398,13 @@ def string_literal(value: str) -> Expr:
398398
"""
399399
if isinstance(value, str):
400400
value = pa.scalar(value, type=pa.string())
401-
return Expr(expr_internal.Expr.literal(value))
401+
return Expr(expr_internal.RawExpr.literal(value))
402402
return Expr.literal(value)
403403

404404
@staticmethod
405405
def column(value: str) -> Expr:
406406
"""Creates a new expression representing a column."""
407-
return Expr(expr_internal.Expr.column(value))
407+
return Expr(expr_internal.RawExpr.column(value))
408408

409409
def alias(self, name: str) -> Expr:
410410
"""Assign a name to the expression."""

src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub mod window;
101101
use sort_expr::{to_sort_expressions, PySortExpr};
102102

103103
/// A PyExpr that can be used on a DataFrame
104-
#[pyclass(name = "Expr", module = "datafusion.expr", subclass)]
104+
#[pyclass(name = "RawExpr", module = "datafusion.expr", subclass)]
105105
#[derive(Debug, Clone)]
106106
pub struct PyExpr {
107107
pub expr: Expr,

0 commit comments

Comments
 (0)