-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
[SQL] Improve DataFrame API error reporting #4296
Conversation
rxin
commented
Jan 31, 2015
- Throw UnsupportedOperationException if a Column is not computable.
- Perform eager analysis on DataFrame so we can catch errors when they happen (not when an action is run).
Test build #26456 has started for PR 4296 at commit
|
Test build #26456 has finished for PR 4296 at commit
|
Test FAILed. |
This patch changes Column from a concrete implementation to a trait, and provides two concrete implementations: IncomputableColumn and ComputableColumn.
testData.groupBy('key).agg(Map("nonExistentName" -> "sum")) | ||
} | ||
intercept[Exception] { | ||
testData.groupBy("nonExistentName").agg(Map("key" -> "sum")) |
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 isn't this (String, String)*
?
265fde7
to
17f6bae
Compare
Test build #26487 has started for PR 4296 at commit
|
Test build #26487 has finished for PR 4296 at commit
|
Test FAILed. |
Test build #26553 has started for PR 4296 at commit
|
Test build #26553 has finished for PR 4296 at commit
|
Test FAILed. |
Conflicts: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala
fix python tests
Test build #26564 has started for PR 4296 at commit
|
Test build #26564 has finished for PR 4296 at commit
|
Test FAILed. |
Jenkins, test this please |
Test build #26587 has started for PR 4296 at commit
|
@rxin this test failure was spurious. It is safe to merge. |
Test build #26587 has finished for PR 4296 at commit
|
Test PASSed. |