-
Notifications
You must be signed in to change notification settings - Fork 135
Renaming Internal Structs #1059
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
80611e6
3c15d55
8affdc0
2529109
42daa1b
f995cb8
4200a39
580ecd5
03d3398
5eebc45
a669bcf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,6 +86,7 @@ | |
| Partitioning = expr_internal.Partitioning | ||
| Placeholder = expr_internal.Placeholder | ||
| Projection = expr_internal.Projection | ||
| RawExpr = expr_internal.RawExpr | ||
| Repartition = expr_internal.Repartition | ||
| ScalarSubquery = expr_internal.ScalarSubquery | ||
| ScalarVariable = expr_internal.ScalarVariable | ||
|
|
@@ -102,6 +103,7 @@ | |
|
|
||
| __all__ = [ | ||
| "Expr", | ||
| "RawExpr", | ||
|
||
| "Column", | ||
| "Literal", | ||
| "BinaryExpr", | ||
|
|
@@ -193,7 +195,7 @@ class Expr: | |
| :ref:`Expressions` in the online documentation for more information. | ||
| """ | ||
|
|
||
| def __init__(self, expr: expr_internal.Expr) -> None: | ||
| def __init__(self, expr: expr_internal.RawExpr) -> None: | ||
| """This constructor should not be called by the end user.""" | ||
| self.expr = expr | ||
|
|
||
|
|
@@ -383,7 +385,7 @@ def literal(value: Any) -> Expr: | |
| value = pa.scalar(value, type=pa.string_view()) | ||
| if not isinstance(value, pa.Scalar): | ||
| value = pa.scalar(value) | ||
| return Expr(expr_internal.Expr.literal(value)) | ||
| return Expr(expr_internal.RawExpr.literal(value)) | ||
|
|
||
| @staticmethod | ||
| def string_literal(value: str) -> Expr: | ||
|
|
@@ -398,13 +400,13 @@ def string_literal(value: str) -> Expr: | |
| """ | ||
| if isinstance(value, str): | ||
| value = pa.scalar(value, type=pa.string()) | ||
| return Expr(expr_internal.Expr.literal(value)) | ||
| return Expr(expr_internal.RawExpr.literal(value)) | ||
| return Expr.literal(value) | ||
|
|
||
| @staticmethod | ||
| def column(value: str) -> Expr: | ||
| """Creates a new expression representing a column.""" | ||
| return Expr(expr_internal.Expr.column(value)) | ||
| return Expr(expr_internal.RawExpr.column(value)) | ||
|
|
||
| def alias(self, name: str) -> Expr: | ||
| """Assign a name to the expression.""" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want this in the wrapper. Instead we want to update the CI test to identify that
RawExpris properly covered by theExprclass in this file.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something along these lines?