Github user mallman commented on the issue:

    https://github.com/apache/spark/pull/15998
  
    > where is the speed-up come from? Is it because the hive API 
getPartitionNames is faster than getPartitions? Or is it because we generate 
the partition string(a=1/b=2/c=3) at hive side and it's faster than Spark?
    
    To answer `getPartitionNames`, Hive does a simple `SELECT` on a table in 
the metastore. It doesn't not transform the results—the partition names are 
in a column in that table. That's where the speed up comes from.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to