Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -3066,9 +3066,12 @@ class Analyzer(
inputAttributes
}

// println(s"\n\ndeserializer= $deserializer\n")
// println(s"\n\ninputs= $inputs\n")
Comment thread
erikerlandson marked this conversation as resolved.
Outdated
validateTopLevelTupleFields(deserializer, inputs)
val resolved = resolveExpressionBottomUp(
deserializer, LocalRelation(inputs), throws = true)
// println(s"\n\nresolved= $resolved\n")
val result = resolved transformDown {
case UnresolvedMapObjects(func, inputData, cls) if inputData.resolved =>
inputData.dataType match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,10 @@ object MapObjects {
elementNullable: Boolean = true,
customCollectionCls: Option[Class[_]] = None): MapObjects = {
val loopVar = LambdaVariable("MapObject", elementType, elementNullable)
MapObjects(loopVar, function(loopVar), inputData, customCollectionCls)
// println(s"\n\n $function, $inputData, $elementType, $elementNullable, $customCollectionCls \n")
val fOfLV = if (function == null) loopVar else function(loopVar)
Comment thread
erikerlandson marked this conversation as resolved.
Outdated
// MapObjects(loopVar, function(loopVar), inputData, customCollectionCls)
MapObjects(loopVar, fOfLV, inputData, customCollectionCls)
Comment thread
erikerlandson marked this conversation as resolved.
Outdated
}
}

Expand Down