Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17077#discussion_r115149598
  
    --- Diff: python/pyspark/sql/readwriter.py ---
    @@ -563,6 +563,63 @@ def partitionBy(self, *cols):
             self._jwrite = self._jwrite.partitionBy(_to_seq(self._spark._sc, 
cols))
             return self
     
    +    @since(2.3)
    +    def bucketBy(self, numBuckets, col, *cols):
    +        """Buckets the output by the given columns.If specified,
    +        the output is laid out on the file system similar to Hive's 
bucketing scheme.
    +
    +        :param numBuckets: the number of buckets to save
    +        :param col: a name of a column, or a list of names.
    +        :param cols: additional names (optional). If `col` is a list it 
should be empty.
    +
    +        .. note:: Applicable for file-based data sources in combination 
with
    +                  :py:meth:`DataFrameWriter.saveAsTable`.
    --- End diff --
    
    This is not accurate. We also can use `save` to store the bucked tables 
without saving its metadata in metastore. 


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to