carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sounakr <...@git.apache.org>
Subject [GitHub] carbondata pull request #1589: [CARBONDATA-1836][Spark-2.2] Carbon Spark2.2 ...
Date Sat, 02 Dec 2017 07:11:34 GMT
Github user sounakr commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1589#discussion_r154490425
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonFileMetastore.scala
---
    @@ -147,7 +147,11 @@ class CarbonFileMetastore extends CarbonMetaStore {
           case LogicalRelation(
           carbonDatasourceHadoopRelation: CarbonDatasourceHadoopRelation, _, _) =>
             carbonDatasourceHadoopRelation.carbonRelation
    -      case SubqueryAlias(_, c: CatalogRelation) if sparkSession.version.startsWith("2.2")
=>
    +      case SubqueryAlias(_, c) if sparkSession.version.startsWith("2.2") &&
    +      (c.getClass.getName.equals("org.apache.spark.sql.catalyst.catalog.CatalogRelation")
||
    +       c.getClass.getName.equals("org.apache.spark.sql.catalyst.catalog.HiveTableRelation")
||
    +       c.getClass.getName
    +         .equals("org.apache.spark.sql.catalyst.catalog.UnresolvedCatalogRelation"))
=>
    --- End diff --
    
    Done


---

Mime
View raw message