-
Notifications
You must be signed in to change notification settings - Fork 121
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
feat: add SparkExpr.cast
for basic types
#1812
Conversation
if isinstance(dtype, pyspark_types.ByteType): | ||
return dtypes.Int8() |
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 remember this came up already @MarcoGorelli . I found the source: https://spark.apache.org/docs/latest/sql-ref-datatypes.html "ByteType
is a 1-byte signed integer (within the range of -128 to 127)." 😅also in the spark.pandas
code
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.
Thanks @EdAbati ! I left a few comments, but really looking forward to merge this 🚀
Co-authored-by: Francesco Bruzzesi <[email protected]>
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.
Thanks @EdAbati
What type of PR is this? (check all applicable)
Related issues
SparkLike
#1743 (just noticed this issue 😕 this PR doesn't close it fully though, we're are still missing more complex dtypes)Checklist
If you have comments or can explain your changes, please do so below