Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ case class SessionHolder(userId: String, sessionId: String, session: SparkSessio
*/
private[connect] def cacheDataFrameById(dfId: String, df: DataFrame): Unit = {
if (dataFrameCache.putIfAbsent(dfId, df) != null) {
SparkException.internalError(s"A dataframe is already associated with id $dfId")
throw SparkException.internalError(s"A dataframe is already associated with id $dfId")
}
}

Expand All @@ -331,7 +331,7 @@ case class SessionHolder(userId: String, sessionId: String, session: SparkSessio
*/
private[connect] def cacheListenerById(id: String, listener: StreamingQueryListener): Unit = {
if (listenerCache.putIfAbsent(id, listener) != null) {
SparkException.internalError(s"A listener is already associated with id $id")
throw SparkException.internalError(s"A listener is already associated with id $id")
}
}

Expand Down