-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-5554] [SQL] [PySpark] add more tests for DataFrame Python API #4331
Conversation
Test build #26635 has started for PR 4331 at commit
|
Conflicts: sql/core/src/main/scala/org/apache/spark/sql/Column.scala
Test build #26643 has started for PR 4331 at commit
|
Test build #26643 has finished for PR 4331 at commit
|
Test FAILed. |
Test build #26646 has started for PR 4331 at commit
|
Test build #26646 has finished for PR 4331 at commit
|
Test FAILed. |
Test build #26649 has started for PR 4331 at commit
|
Test build #26635 has finished for PR 4331 at commit
|
Test FAILed. |
Test build #575 has started for PR 4331 at commit
|
Test build #26649 has finished for PR 4331 at commit
|
Test FAILed. |
Test build #575 has finished for PR 4331 at commit
|
Test build #26661 has started for PR 4331 at commit
|
@@ -496,8 +496,8 @@ trait Column extends DataFrame { | |||
* @param startPos expression for the starting position. | |||
* @param len expression for the length of the substring. | |||
*/ | |||
def substr(startPos: Column, len: Column): Column = { | |||
new IncomputableColumn(Substring(expr, startPos.expr, len.expr)) | |||
def substr(startPos: Column, len: Column): Column = constructColumn(null) { |
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.
this change breaks this pr : #4332
You need to use
exprToColumn(Substring(expr, startPos.expr, len.expr), computable = false)
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.
Why computable should be false?
Test build #26661 has finished for PR 4331 at commit
|
Test PASSed. |
Test build #26671 has started for PR 4331 at commit
|
Test build #26672 has started for PR 4331 at commit
|
Test build #26671 has finished for PR 4331 at commit
|
Test FAILed. |
Test build #26672 has finished for PR 4331 at commit
|
Test FAILed. |
Test build #26679 has started for PR 4331 at commit
|
Test build #26679 has finished for PR 4331 at commit
|
Test PASSed. |
Thanks. Merging in master. |
Add more tests and docs for DataFrame Python API, improve test coverage, fix bugs. Author: Davies Liu <[email protected]> Closes #4331 from davies/fix_df and squashes the following commits: dd9919f [Davies Liu] fix tests 467332c [Davies Liu] support string in cast() 83c92fe [Davies Liu] address comments c052f6f [Davies Liu] Merge branch 'master' of github.com:apache/spark into fix_df 8dd19a9 [Davies Liu] fix tests in python 2.6 35ccb9f [Davies Liu] fix build 78ebcfa [Davies Liu] add sql_test.py in run_tests 9ab78b4 [Davies Liu] Merge branch 'master' of github.com:apache/spark into fix_df 6040ba7 [Davies Liu] fix docs 3ab2661 [Davies Liu] add more tests for DataFrame (cherry picked from commit 068c0e2) Signed-off-by: Reynold Xin <[email protected]>
Add more tests and docs for DataFrame Python API, improve test coverage, fix bugs.