spark-instrumented-optimizer/sql/core/src
windpiger 65fe902e13 [SPARK-19598][SQL] Remove the alias parameter in UnresolvedRelation
## What changes were proposed in this pull request?

Remove the alias parameter in `UnresolvedRelation`, and use `SubqueryAlias` to replace it.
This can simplify some `match case` situations.

For example, the broadcast hint pull request can have one fewer case https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveHints.scala#L57-L61

## How was this patch tested?
add some unit tests

Author: windpiger <songjun@outlook.com>

Closes #16956 from windpiger/removeUnresolveTableAlias.
2017-02-19 16:50:16 -08:00
..
main [SPARK-19598][SQL] Remove the alias parameter in UnresolvedRelation 2017-02-19 16:50:16 -08:00
test [SPARK-19598][SQL] Remove the alias parameter in UnresolvedRelation 2017-02-19 16:50:16 -08:00