-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-47933][PYTHON] Parent Column class for Spark Connect and Spark Classic #46155
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 all commits
9576489
0f04479
3aebec4
7dde1e8
dadf9c7
4707269
fe4368e
91d4bd6
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 |
---|---|---|
|
@@ -22,7 +22,8 @@ | |
from pyspark.ml.common import _java2py, _py2java | ||
from pyspark.ml.linalg import Matrix, Vector | ||
from pyspark.ml.wrapper import JavaWrapper, _jvm | ||
from pyspark.sql.column import Column, _to_seq | ||
from pyspark.sql.column import Column | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this consistent with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or import There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file is only used in Spark Classic so it should probably be fine. It is a bit messy and complicated .. I will try to refactor them separately. |
||
from pyspark.sql.classic.column import _to_seq | ||
from pyspark.sql.dataframe import DataFrame | ||
from pyspark.sql.functions import lit | ||
|
||
|
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.
Should keep it as-is to be consistent with the classic
functions.py
if it changes to referclassic
?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.
It is actually related to the type hints. We're using
pyspark.sql.Column
for type hints, and when we actually need to create the instance, we should usepyspark.sql.classic.column import Column
orpyspark.sql.connect.column import Column
.. it is also a bit messy. I should probably clean those up separately.