diff options
author | Josh Rosen <joshrosen@databricks.com> | 2015-02-16 18:08:02 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-02-16 18:08:02 -0800 |
commit | 58a82a7882d7a8a7e4064278c4bf28607d9a42ba (patch) | |
tree | 77d158553aedfaf13e2722e6fa1ca5129477d3bc /sql | |
parent | 16687651f05bde8ff2e2fcef100383168958bf7f (diff) | |
download | spark-58a82a7882d7a8a7e4064278c4bf28607d9a42ba.tar.gz spark-58a82a7882d7a8a7e4064278c4bf28607d9a42ba.tar.bz2 spark-58a82a7882d7a8a7e4064278c4bf28607d9a42ba.zip |
[SPARK-5849] Handle more types of invalid JSON requests in SubmitRestProtocolMessage.parseAction
This patch improves SubmitRestProtocol's handling of invalid JSON requests in cases where those requests were parsable as JSON but not as JSON objects (e.g. they could be parsed as ararys or strings). I replaced an unchecked cast with pattern-matching and added a new test case.
Author: Josh Rosen <joshrosen@databricks.com>
Closes #4637 from JoshRosen/rest-protocol-cast and squashes the following commits:
b3f282b [Josh Rosen] [SPARK-5849] Handle more types of invalid JSON in SubmitRestProtocolMessage.parseAction
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions