Re: Fwd: Re: DataFrame equality does not working in 1.5.1

2015-11-06 Thread Seongduk Cheon
and then I >>>> applied toDF() function. >>>> Something like that in your case: >>>> >>>> case class Event(id: String, event: String, entityType: String, >>>> entityId: String, targetEntityType: String, targetEntityId: String, >>>&g

Re: Fwd: Re: DataFrame equality does not working in 1.5.1

2015-11-06 Thread Michael Armbrust
ied toDF() function. >>> Something like that in your case: >>> >>> case class Event(id: String, event: String, entityType: String, entityId: >>> String, targetEntityType: String, targetEntityId: String, properties: >>> String) >>>

Re: Fwd: Re: DataFrame equality does not working in 1.5.1

2015-11-06 Thread Michael Armbrust
t; Something like that in your case: >> >> case class Event(id: String, event: String, entityType: String, entityId: >> String, targetEntityType: String, targetEntityId: String, properties: >> String) >> eventRDD.map{case (id, event, entityType, entityId, targetEntityType,

Re: Fwd: Re: DataFrame equality does not working in 1.5.1

2015-11-06 Thread Seongduk Cheon
targetEntityId: String, properties: > String) > eventRDD.map{case (id, event, entityType, entityId, targetEntityType, > targetEntityId, > properties) => > Event(id, event, entityType, entityId, targetEntityType, targetEntityId, > properties) }.toDF() > > The comparison === sho

Re: DataFrame equality does not working in 1.5.1

2015-11-05 Thread Seongduk Cheon
Hi, Yin Thanks for your time. This is the result. -- scala> eventDF.filter($"entityType" === "user").select("entityId").distinct.explain(true) == Parsed Logical Plan == Aggregate [entityId#16], [entityId#16] Project [entityId#16] Filter (entityType#15 = user) Project [_1#0 A

Re: DataFrame equality does not working in 1.5.1

2015-11-05 Thread Yin Huai
Can you attach the result of eventDF.filter($"entityType" === "user").select("entityId").distinct.explain(true)? Thanks, Yin On Thu, Nov 5, 2015 at 1:12 AM, 千成徳 wrote: > Hi All, > > I have data frame like this. > > Equality expression is not working in 1.5.1 but, works as expected in 1.4.0 > W

DataFrame equality does not working in 1.5.1

2015-11-05 Thread 千成徳
Hi All, I have data frame like this. Equality expression is not working in 1.5.1 but, works as expected in 1.4.0 What is the difference? scala> eventDF.printSchema() root |-- id: string (nullable = true) |-- event: string (nullable = true) |-- entityType: string (nullable = true) |-- entityI