spark-instrumented-optimizer/sql/catalyst
Takeshi Yamamuro 6aad02d036 [SPARK-18394][SQL] Make an AttributeSet.toSeq output order consistent
## What changes were proposed in this pull request?
This pr sorted output attributes on their name and exprId in `AttributeSet.toSeq` to make the order consistent.  If the order is different, spark possibly generates different code and then misses cache in `CodeGenerator`, e.g., `GenerateColumnAccessor` generates code depending on an input attribute order.

## How was this patch tested?
Added tests in `AttributeSetSuite` and manually checked if the cache worked well in the given query of the JIRA.

Author: Takeshi Yamamuro <yamamuro@apache.org>

Closes #18959 from maropu/SPARK-18394.
2017-08-17 22:47:14 +02:00
..
src [SPARK-18394][SQL] Make an AttributeSet.toSeq output order consistent 2017-08-17 22:47:14 +02:00
pom.xml [SPARK-21544][DEPLOY][TEST-MAVEN] Tests jar of some module should not upload twice 2017-08-07 12:51:39 +01:00