Github user ueshin commented on a diff in the pull request:
https://github.com/apache/spark/pull/22017#discussion_r208803239
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvalHelper.scala
---
@@ -225,7 +264,9 @@ trait ExpressionEvalHelper extends
GeneratorDrivenPropertyChecks with PlanTestBa
val lit = InternalRow(expected, expected)
val expectedRow =
UnsafeProjection.create(Array(expression.dataType,
expression.dataType)).apply(lit)
- if (unsafeRow != expectedRow) {
+ val field = StructField("field", expression.dataType)
+ val dataType = StructType(field :: field :: Nil)
+ if (!checkResult(unsafeRow, expectedRow, dataType)) {
--- End diff --
What's this for?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]