spark-instrumented-optimizer/sql/catalyst/src/main
Reynold Xin fd90541c35 [SPARK-18214][SQL] Simplify RuntimeReplaceable type coercion
## What changes were proposed in this pull request?
RuntimeReplaceable is used to create aliases for expressions, but the way it deals with type coercion is pretty weird (each expression is responsible for how to handle type coercion, which does not obey the normal implicit type cast rules).

This patch simplifies its handling by allowing the analyzer to traverse into the actual expression of a RuntimeReplaceable.

## How was this patch tested?
- Correctness should be guaranteed by existing unit tests already
- Removed SQLCompatibilityFunctionSuite and moved it sql-compatibility-functions.sql
- Added a new test case in sql-compatibility-functions.sql for verifying explain behavior.

Author: Reynold Xin <rxin@databricks.com>

Closes #15723 from rxin/SPARK-18214.
2016-11-02 15:53:02 -07:00
..
antlr4/org/apache/spark/sql/catalyst/parser [SPARK-17338][SQL] add global temp view 2016-10-10 15:48:57 +08:00
java/org/apache/spark/sql [SPARK-17996][SQL] Fix unqualified catalog.getFunction(...) 2016-11-01 15:41:45 +01:00
scala/org/apache/spark/sql [SPARK-18214][SQL] Simplify RuntimeReplaceable type coercion 2016-11-02 15:53:02 -07:00