diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-08-24 21:14:40 +0200 |
---|---|---|
committer | Herman van Hovell <hvanhovell@databricks.com> | 2016-08-24 21:14:40 +0200 |
commit | 40b30fcf453169534cb53d01cd22236210b13005 (patch) | |
tree | 0ef4595336eeed368ce401d73083b8cac8ffd45c /python | |
parent | 0b3a4be92ca6b38eef32ea5ca240d9f91f68aa65 (diff) | |
download | spark-40b30fcf453169534cb53d01cd22236210b13005.tar.gz spark-40b30fcf453169534cb53d01cd22236210b13005.tar.bz2 spark-40b30fcf453169534cb53d01cd22236210b13005.zip |
[SPARK-16983][SQL] Add `prettyName` for row_number, dense_rank, percent_rank, cume_dist
## What changes were proposed in this pull request?
Currently, two-word window functions like `row_number`, `dense_rank`, `percent_rank`, and `cume_dist` are expressed without `_` in error messages. We had better show the correct names.
**Before**
```scala
scala> sql("select row_number()").show
java.lang.UnsupportedOperationException: Cannot evaluate expression: rownumber()
```
**After**
```scala
scala> sql("select row_number()").show
java.lang.UnsupportedOperationException: Cannot evaluate expression: row_number()
```
## How was this patch tested?
Pass the Jenkins and manual.
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #14571 from dongjoon-hyun/SPARK-16983.
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions