Skip to content

Commit 8de6915

Browse files
committed
address review comment
1 parent c0dca2b commit 8de6915

File tree

1 file changed

+3
-4
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer

1 file changed

+3
-4
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/objects.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@ object CombineTypedFilters extends Rule[LogicalPlan] {
100100

101101
/**
102102
* Removes MapObjects when the following conditions are satisfied
103-
* 1. Mapobject(e) where e is lambdavariable(), which means types for input output
104-
* are primitive types
105-
* 2. no custom collection class specified
106-
* representation of data item. For example back to back map operations.
103+
* 1. Mapobject(... lambdavariable(..., false) ...), which means types for input and output
104+
* are primitive types with non-nullable
105+
* 2. no custom collection class specified representation of data item.
107106
*/
108107
object EliminateMapObjects extends Rule[LogicalPlan] {
109108
def apply(plan: LogicalPlan): LogicalPlan = plan transformAllExpressions {

0 commit comments

Comments
 (0)