spark-instrumented-optimizer/sql/catalyst/src
Wenchen Fan 4f11e3f2aa [SPARK-12841][SQL] fix cast in filter
In SPARK-10743 we wrap cast with `UnresolvedAlias` to give `Cast` a better alias if possible. However, for cases like `filter`, the `UnresolvedAlias` can't be resolved and actually we don't need a better alias for this case.  This PR move the cast wrapping logic to `Column.named` so that we will only do it when we need a alias name.

Author: Wenchen Fan <wenchen@databricks.com>

Closes #10781 from cloud-fan/bug.
2016-01-18 14:15:27 -08:00
..
main [SPARK-12841][SQL] fix cast in filter 2016-01-18 14:15:27 -08:00
test [SPARK-12873][SQL] Add more comment in HiveTypeCoercion for type widening 2016-01-18 11:08:44 -08:00