[HOT-FIX] Add EvaluatedType back to RDG

87941ff8c4 accidentally removed the EvaluatedType.

Author: Yin Huai <yhuai@databricks.com>

Closes #6589 from yhuai/getBackEvaluatedType and squashes the following commits:

618c2eb [Yin Huai] Add EvaluatedType back.
This commit is contained in:
Yin Huai 2015-06-02 09:59:19 -07:00
parent 97fedf1a02
commit 8c3fc3a6cd

View file

@ -38,6 +38,8 @@ abstract class RDG(seed: Long) extends LeafExpression with Serializable {
*/
@transient protected lazy val rng = new XORShiftRandom(seed + TaskContext.get().partitionId())
override type EvaluatedType = Double
override def deterministic: Boolean = false
override def nullable: Boolean = false