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

    https://github.com/apache/spark/pull/17737#discussion_r112860925
  
    --- Diff: python/pyspark/sql/column.py ---
    @@ -185,17 +185,52 @@ def __contains__(self, item):
                              "in a string column or 'array_contains' function 
for an array column.")
     
         # bitwise operators
    -    bitwiseOR = _bin_op("bitwiseOR")
    -    bitwiseAND = _bin_op("bitwiseAND")
    -    bitwiseXOR = _bin_op("bitwiseXOR")
    +    _bitwiseOR_doc = """
    +    Compute bitwise OR of this expression with another expression.
    +
    +    :param other: a value or :class:`Column` to calculate bitwise or(|) 
against
    +                  this :class:`Column`.
    +
    +    >>> from pyspark.sql import Row
    +    >>> df3 = spark.createDataFrame([Row(a=170, b=75)])
    +    >>> df3.select(df3.a.bitwiseOR(df3.b)).collect()
    +    [Row((a | b)=235)]
    +    """
    +
    +    _bitwiseAND_doc = """
    +    Compute bitwise AND of this expression with another expression.
    +
    +    :param other: a value or :class:`Column` to calculate bitwise and(&) 
against
    +                  this :class:`Column`.
    +
    +    >>> from pyspark.sql import Row
    +    >>> df3 = spark.createDataFrame([Row(a=170, b=75)])
    +    >>> df3.select(df3.a.bitwiseAND(df3.b)).collect()
    +    [Row((a & b)=10)]
    +    """
    --- End diff --
    
    ![2017-04-24 12 43 
26](https://cloud.githubusercontent.com/assets/6477701/25321715/b64d798a-28eb-11e7-9e0f-96563c9717b4.png)



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