diff options
author | Volodymyr Lyubinets <vlyubin@gmail.com> | 2015-04-06 18:00:51 -0700 |
---|---|---|
committer | Aaron Davidson <aaron@databricks.com> | 2015-04-06 18:00:51 -0700 |
commit | e40ea8742a8771ecd46b182f45b5fcd8bd6dd725 (patch) | |
tree | e654bf33a085ae1849445e5a61056fc082ca0891 /core | |
parent | 30363ede8635f2548e444697dbcf60a795b61a84 (diff) | |
download | spark-e40ea8742a8771ecd46b182f45b5fcd8bd6dd725.tar.gz spark-e40ea8742a8771ecd46b182f45b5fcd8bd6dd725.tar.bz2 spark-e40ea8742a8771ecd46b182f45b5fcd8bd6dd725.zip |
[Minor] [SQL] [SPARK-6729] Minor fix for DriverQuirks get
The function uses .substring(0, X), which will trigger OutOfBoundsException if string length is less than X. A better way to do this is to use startsWith, which won't error out in this case.
Author: Volodymyr Lyubinets <vlyubin@gmail.com>
Closes #5378 from vlyubin/quirks and squashes the following commits:
504e8e0 [Volodymyr Lyubinets] Minor fix for DriverQuirks get
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions