hivemall-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myui <>
Subject [GitHub] incubator-hivemall pull request #61: [HIVEMALL-88][SPARK] Support a function...
Date Thu, 09 Mar 2017 01:52:51 GMT
Github user myui commented on a diff in the pull request:
    --- 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 = => s"$p.${}").getOrElse(
    --- End diff --
    Dot `.` is a special symbol in SQL. So, better to change the default separator (e.g.,
`$` ) and have an option to choose the separator. `news20.train` means train table in news20
    SQL identifiers are depending on RDBMSs but generally includes `[0-9,a-z,A-Z$_]`.

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

View raw message