Github user Leemoonsoo commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/132#issuecomment-118431963
Thanks for the great contribution.
According to message from CI server
```
[ERROR]
/home/travis/build/apache/incubator-zeppelin/spark/src/main/scala/org/apache/zeppelin/spark/utils/SparkSqlCompleter.scala:8:
error: object StructType is not a member of package org.apache.spark.sql.types
[INFO] import org.apache.spark.sql.types.{StructType, StructField}
[INFO] ^
[ERROR]
/home/travis/build/apache/incubator-zeppelin/spark/src/main/scala/org/apache/zeppelin/spark/utils/SparkSqlCompleter.scala:15:
error: value implicits is not a member of org.apache.spark.sql.SQLContext
[INFO] import sqlContext.implicits._
[INFO] ^
[ERROR]
/home/travis/build/apache/incubator-zeppelin/spark/src/main/scala/org/apache/zeppelin/spark/utils/SparkSqlCompleter.scala:20:
error: value tables is not a member of org.apache.spark.sql.SQLContext
[INFO] override def get(): Seq[String] =
sqlContext.tables().select('tableName).collect().map(_.getString(0))
[INFO] ^
[ERROR]
/home/travis/build/apache/incubator-zeppelin/spark/src/main/scala/org/apache/zeppelin/spark/utils/SparkSqlCompleter.scala:40:
error: not found: type StructField
[INFO] def fieldNames(prefix: Seq[String], fields: Array[StructField]):
Seq[String] = {
[INFO] ^
[ERROR]
/home/travis/build/apache/incubator-zeppelin/spark/src/main/scala/org/apache/zeppelin/spark/utils/SparkSqlCompleter.scala:41:
error: type mismatch;
[ERROR] found : fields.type (with underlying type Array[<error>])
[INFO] required: ?{def flatMap: ?}
[INFO] Note that implicit conversions are not applicable because they are
ambiguous:
[INFO] both method booleanArrayOps in object Predef of type (xs:
Array[Boolean])scala.collection.mutable.ArrayOps[Boolean]
[INFO] and method byteArrayOps in object Predef of type (xs:
Array[Byte])scala.collection.mutable.ArrayOps[Byte]
[INFO] are possible conversion functions from fields.type to ?{def
flatMap: ?}
[INFO] fields.flatMap { f =>
```
It looks like there're some compiling error. @nevillelyh Do you have any
idea about the error?
---
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.
---