You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by saj1th <gi...@git.apache.org> on 2017/01/13 08:28:24 UTC

[GitHub] zeppelin issue #780: [ZEPPELIN-658] Scala: not accepting companion objects i...

Github user saj1th commented on the issue:

    https://github.com/apache/zeppelin/pull/780
  
    Still getting this issue with  Zeppelin 0.6.2 while trying to use companion object
    
    ```
    class Event(val nuid: String) extends Product {
      override def productElement(n: Int): Any = {
        n match {
          case 0 => nuid
        }
      }
      override def productArity: Int = 1
      override def canEqual(that: Any): Boolean = that.isInstanceOf[Event]
    }
    object Event {
      def apply(row: Row): Event = {
        if (row.isNullAt(16)) {
          new Event("")
        } else {
          new Event(row.getString(16))
        }
      }
    }
    ```
    
    Any pointers ?



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---