spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gatorsmile <>
Subject [GitHub] spark pull request #17077: [SPARK-16931][PYTHON][SQL] Add Python wrapper for...
Date Sun, 07 May 2017 17:52:57 GMT
Github user gatorsmile commented on a diff in the pull request:
    --- Diff: python/pyspark/sql/ ---
    @@ -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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message