Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/apache/predictionio into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
EmergentOrder committed Jul 22, 2019
2 parents 92cab7a + d5b5ad5 commit a9e12de
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,17 @@ object PPythonEventStore {
Option(entityType),
Option(entityId),
Option(eventNames),
Option(Option(targetEntityType)),
Option(Option(targetEntityId)))(spark.sparkContext).map { e =>
targetEntityType match {
case null => None
case "" => Option(None)
case _ => Option(Option(targetEntityType))
},
targetEntityId match {
case null => None
case "" => Option(None)
case _ => Option(Option(targetEntityId))
}
)(spark.sparkContext).map { e =>
(
e.eventId,
e.event,
Expand Down

0 comments on commit a9e12de

Please sign in to comment.