You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/10/30 15:02:55 UTC

[GitHub] [incubator-iceberg] aokolnychyi commented on issue #592: Consider using SessionCatalog in SparkTableUtil

aokolnychyi commented on issue #592: Consider using SessionCatalog in SparkTableUtil
URL: https://github.com/apache/incubator-iceberg/issues/592#issuecomment-547950809
 
 
   @rdblue is there a particular reason to use the Hive client directly in `SparkTableUtil`?
   What about this?
   
   ```
   spark.sessionState.catalog
     .listPartitions(tableIdentifier)
     .map(p => (p.spec, p.storage.locationUri.map(String.valueOf(_)), p.storage.serde))
     .toDF("partition", "uri", "format")
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org