diff options
author | Josh Rosen <joshrosen@databricks.com> | 2016-09-19 20:20:36 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2016-09-19 20:20:36 -0700 |
commit | e719b1c045ba185d242d21bbfcdee2c84dafc587 (patch) | |
tree | 7119e5ac97b9eb3c9c118db265500585a2904d5a /common | |
parent | d8104158a922d86dd4f00e50d5d7dddc7b777a21 (diff) | |
download | spark-e719b1c045ba185d242d21bbfcdee2c84dafc587.tar.gz spark-e719b1c045ba185d242d21bbfcdee2c84dafc587.tar.bz2 spark-e719b1c045ba185d242d21bbfcdee2c84dafc587.zip |
[SPARK-17160] Properly escape field names in code-generated error messages
This patch addresses a corner-case escaping bug where field names which contain special characters were unsafely interpolated into error message string literals in generated Java code, leading to compilation errors.
This patch addresses these issues by using `addReferenceObj` to store the error messages as string fields rather than inline string constants.
Author: Josh Rosen <joshrosen@databricks.com>
Closes #15156 from JoshRosen/SPARK-17160.
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions