Github user navis commented on a diff in the pull request:
https://github.com/apache/spark/pull/7225#discussion_r33933969
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Projection.scala
---
@@ -22,9 +22,15 @@ package org.apache.spark.sql.catalyst.expressions
* @param expressions a sequence of expressions that determine the value
of each column of the
* output row.
*/
-class InterpretedProjection(expressions: Seq[Expression]) extends
Projection {
- def this(expressions: Seq[Expression], inputSchema: Seq[Attribute]) =
- this(expressions.map(BindReferences.bindReference(_, inputSchema)))
+class InterpretedProjection(expressions: Seq[Expression], mutableRow:
Boolean = false)
+ extends Projection {
+
+ def this(
+ expressions: Seq[Expression],
+ inputSchema: Seq[Attribute],
+ mutableRow: Boolean = false) = {
+ this(expressions.map(BindReferences.bindReference(_, inputSchema)),
mutableRow)
+ }
--- End diff --
Yes, but InterpretedProjection and InterpretedMutableProjection has
different semantic on returning object. It would be same thing if call
setTarget() before each apply() call but I wanted keep it simple without
incurring another problem.
---
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]