diff options
author | Wenchen Fan <wenchen@databricks.com> | 2016-05-04 00:10:20 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-05-04 00:10:20 -0700 |
commit | 6c12e801e84565265d2939b920901d1805d5935f (patch) | |
tree | b09ff9210ae23abe346523da253baa9e751fc6da /tools/pom.xml | |
parent | bc3760d405cc8c3ffcd957b188afa8b7e3b1f824 (diff) | |
download | spark-6c12e801e84565265d2939b920901d1805d5935f.tar.gz spark-6c12e801e84565265d2939b920901d1805d5935f.tar.bz2 spark-6c12e801e84565265d2939b920901d1805d5935f.zip |
[SPARK-15029] improve error message for Generate
## What changes were proposed in this pull request?
This PR improve the error message for `Generate` in 3 cases:
1. generator is nested in expressions, e.g. `SELECT explode(list) + 1 FROM tbl`
2. generator appears more than one time in SELECT, e.g. `SELECT explode(list), explode(list) FROM tbl`
3. generator appears in other operator which is not project, e.g. `SELECT * FROM tbl SORT BY explode(list)`
## How was this patch tested?
new tests in `AnalysisErrorSuite`
Author: Wenchen Fan <wenchen@databricks.com>
Closes #12810 from cloud-fan/bug.
Diffstat (limited to 'tools/pom.xml')
0 files changed, 0 insertions, 0 deletions