Skip to content

Commit

Permalink
Use analyzed attributes when applying the schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Jul 17, 2014
1 parent 4969015 commit f968195
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class SchemaRDD(
* @group schema
*/
private def applySchema(rdd: RDD[Row]): SchemaRDD = {
new SchemaRDD(sqlContext, SparkLogicalPlan(ExistingRdd(logicalPlan.output, rdd)))
new SchemaRDD(sqlContext, SparkLogicalPlan(ExistingRdd(queryExecution.analyzed.output, rdd)))
}

// =======================================================================
Expand Down

0 comments on commit f968195

Please sign in to comment.