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
[SPARK-28454][PYTHON] Validate LongType in createDataFrame(verifySchema=True)
#25117
Conversation
Can you show the output before / after? Also, please file a JIRA. See https://spark.apache.org/contributing.html |
ok to test |
Test build #107661 has finished for PR 25117 at commit
|
Could you clarify what kind of output do you want to see? Test results or what? |
Test build #107928 has finished for PR 25117 at commit
|
Test build #107936 has finished for PR 25117 at commit
|
|
Unpatched version:
Patched:
|
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.
Can you post the comment in PR description and update migration guide (https://github.com/apache/spark/blob/master/docs/sql-migration-guide-upgrade.md#upgrading-from-spark-sql-24-to-30) as well?
We can mention like in spark 3.0, it verifies long type when creating a dataframe via spark.createDataFrame
. Previously long type was not verified and resulted in null
. To keep this behavior, set verifySchema=False
.
createDataFrame(verifySchema=True)
Done. |
Test build #108489 has finished for PR 25117 at commit
|
Test build #108488 has finished for PR 25117 at commit
|
@HyukjinKwon any action required from my side? It seems that tests are just flapping. They are failing in unrelated parts of code which I didn't touch. |
retest this please |
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.
Looks good otherwise.
Test build #108759 has finished for PR 25117 at commit
|
Test build #108761 has finished for PR 25117 at commit
|
Merged to master. |
Thanks for the contribution, @simplylizz |
What changes were proposed in this pull request?
Add missing validation for
LongType
inpyspark.sql.types._make_type_verifier
.How was this patch tested?
Doctests / unittests / manual tests.
Unpatched version:
Patched: