Github user nico-pappagianis commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/226#discussion_r92485493
  
    --- Diff: 
phoenix-spark/src/main/scala/org/apache/phoenix/spark/SparkContextFunctions.scala
 ---
    @@ -32,10 +32,10 @@ class SparkContextFunctions(@transient val sc: 
SparkContext) extends Serializabl
        */
     
       def phoenixTableAsRDD(table: String, columns: Seq[String], predicate: 
Option[String] = None,
    -                        zkUrl: Option[String] = None, conf: Configuration 
= new Configuration())
    +                        zkUrl: Option[String] = None, tenantId: 
Option[String] = None, conf: Configuration = new Configuration())
                             : RDD[Map[String, AnyRef]] = {
     
         // Create a PhoenixRDD, but only return the serializable 'result' map
    -    new PhoenixRDD(sc, table, columns, predicate, zkUrl, 
conf).map(_.result)
    +    new PhoenixRDD(sc, table, columns, predicate, zkUrl, tenantId, 
conf).map(_.result)
    --- End diff --
    
    Now we pass tenantId to PhoenixRDD so we can read tenant-specific tables


---
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.
---

Reply via email to