Github user maropu commented on a diff in the pull request: https://github.com/apache/incubator-hivemall/pull/61#discussion_r105088535 --- Diff: spark/spark-2.1/src/main/scala/org/apache/spark/sql/hive/HivemallOps.scala --- @@ -805,6 +805,47 @@ final class HivemallOps(df: DataFrame) extends Logging { JoinTopK(kInt, df.logicalPlan, right.logicalPlan, Inner, Option(joinExprs.expr))(score.named) } + private def doFlatten(schema: StructType, prefix: Option[String] = None) : Seq[Column] = { + schema.fields.flatMap { f => + val colName = prefix.map(p => s"$p.${f.name}").getOrElse(f.name) --- End diff -- I know, but this is a Spark-local specification. So, the change you suggested make `doFlatten` fail.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---