I got it working. When I was persisting, it only persisted 85% of the RDD to memory and the rest of the RDD gets recomputed every time. Because my flagged RDD uses a random method to create the field, I was getting unpredictable results. When I persist using:
flagged.persist(StorageLevel.MEMORY_AND_DISK) it works perfectly well. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Unusual-filter-behaviour-on-RDD-tp22749p22752.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org