Github user lw-lin commented on a diff in the pull request:
https://github.com/apache/spark/pull/14698#discussion_r76177037
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvalHelper.scala
---
@@ -136,7 +136,7 @@ trait ExpressionEvalHelper extends
GeneratorDrivenPropertyChecks {
// some expression is reusing variable names across different
instances.
// This behavior is tested in ExpressionEvalHelperSuite.
val plan = generateProject(
- GenerateUnsafeProjection.generate(
+ UnsafeProjection.create(
--- End diff --
yea.
`GenerateUnsafeProjection.generate` here was not able to use unsafe-backed
data structure because it's `Create*Struct`.
`UnsafeProjection.create`, however, does use unsafe-backed data structure
(UnsafeRow, UnsafeArrayData, ...) so that this test is valid.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]