carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipesala <...@git.apache.org>
Subject [GitHub] carbondata pull request #1469: [WIP] Spark-2.2 Carbon Integration - Phase 1
Date Sun, 26 Nov 2017 07:57:37 GMT
Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1469#discussion_r153062611
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/parser/CarbonSpark2SqlParser.scala
---
    @@ -177,7 +213,24 @@ class CarbonSpark2SqlParser extends CarbonDDLSqlParser {
     
       protected lazy val table: Parser[UnresolvedRelation] = {
         rep1sep(attributeName, ".") ~ opt(ident) ^^ {
    -      case tableIdent ~ alias => UnresolvedRelation(tableIdent, alias)
    +      case tableIdent ~ alias => UnresolvedRelation(tableIdent)
    +    }
    +  }
    +
    +  protected lazy val aliasTable: Parser[(UnresolvedRelation, List[String], Option[String],
    +    TableIdentifier)] = {
    +    rep1sep(attributeName, ".") ~ opt(ident) ^^ {
    +      case tableIdent ~ alias =>
    +
    +        val tableIdentifier: TableIdentifier = toTableIdentifier(tableIdent)
    +        val localAlias: Option[String] = alias
    --- End diff --
    
    This localAlias is not required


---

Mime
View raw message