maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r475360192
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -119,7 +119,7 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
val kvWriter =
CatalystTypeConverters.createToCatalystConverter(StringType)
prevLine: String =>
new GenericInternalRow(
- prevLine.split(outputRowFormat).slice(0, 2)
+ prevLine.split(outputRowFormat).slice(0, 2).padTo(2, null)
.map(kvWriter))
Review comment:
If it's a trivial fix, IMO its okay to include it in this PR.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]