Github user sethah commented on the pull request:
https://github.com/apache/spark/pull/9003#issuecomment-149424324
@mengxr I think having `VarianceSamp` inherit from `Variance` will be a
fine solution. I'm not clear on why it is better not to touch `InternalRow` in
the subclasses, but if we must avoid it, one solution could be
```scala
def eval(buffer: InternalRow): Any = this match {
case _: VariancePop => { }
case _: Variance => { }
case _: Skewness => { }
case _: Kurtosis => { }
```
---
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]