aboutsummaryrefslogtreecommitdiff
path: root/mllib/src
diff options
context:
space:
mode:
authorWilliam Benton <willb@redhat.com>2014-05-13 13:45:23 -0700
committerReynold Xin <rxin@apache.org>2014-05-13 13:45:23 -0700
commit16ffadcc4af21430b5079dc555bcd9d8cf1fa1fa (patch)
treec5d3c4dd4c0c8a24f6fc6d9ce8369825c267c9bf /mllib/src
parent52d905296fd75b3bff34a16cb69e604b68b3c246 (diff)
downloadspark-16ffadcc4af21430b5079dc555bcd9d8cf1fa1fa.tar.gz
spark-16ffadcc4af21430b5079dc555bcd9d8cf1fa1fa.tar.bz2
spark-16ffadcc4af21430b5079dc555bcd9d8cf1fa1fa.zip
SPARK-571: forbid return statements in cleaned closures
This patch checks top-level closure arguments to `ClosureCleaner.clean` for `return` statements and raises an exception if it finds any. This is mainly a user-friendliness addition, since programs with return statements in closure arguments will currently fail upon RDD actions with a less-than-intuitive error message. Author: William Benton <willb@redhat.com> Closes #717 from willb/spark-571 and squashes the following commits: c41eb7d [William Benton] Another test case for SPARK-571 30c42f4 [William Benton] Stylistic cleanups 559b16b [William Benton] Stylistic cleanups from review de13b79 [William Benton] Style fixes 295b6a5 [William Benton] Forbid return statements in closure arguments. b017c47 [William Benton] Added a test for SPARK-571
Diffstat (limited to 'mllib/src')
0 files changed, 0 insertions, 0 deletions