Github user EntilZha commented on the pull request:

    https://github.com/apache/spark/pull/7580#issuecomment-124259173
  
    Looks like back to the issue where python dataframes has a mismatch of 
`bigint` and `int`. I am pretty sure that this is an issue with the python 
portion, since all the scala tests pass. Below is the stacktrace, any ideas how 
this might be fixed?
    
    ```python
    File 
"/home/jenkins/workspace/SparkPullRequestBuilder@2/python/pyspark/sql/functions.py",
 line 852, in pyspark.sql.functions.array_contains
    Failed example:
        df.select(array_contains(df.data, 1)).collect()
    Exception raised:
        Traceback (most recent call last):
          File "/usr/lib64/python2.6/doctest.py", line 1253, in __run
            compileflags, 1) in test.globs
          File "<doctest pyspark.sql.functions.array_contains[1]>", line 1, in 
<module>
            df.select(array_contains(df.data, 1)).collect()
          File 
"/home/jenkins/workspace/SparkPullRequestBuilder@2/python/pyspark/sql/dataframe.py",
 line 735, in select
            jdf = self._jdf.select(self._jcols(*cols))
          File 
"/home/jenkins/workspace/SparkPullRequestBuilder@2/python/lib/py4j-0.8.2.1-src.zip/py4j/java_gateway.py",
 line 538, in __call__
            self.target_id, self.name)
          File 
"/home/jenkins/workspace/SparkPullRequestBuilder@2/python/pyspark/sql/utils.py",
 line 40, in deco
            raise AnalysisException(s.split(': ', 1)[1])
        AnalysisException: cannot resolve 'array_contains(data,1)' due to data 
type mismatch: argument 2 is expected to be of type bigint, however, '1' is of 
type int.;
    **********************************************************************
       1 of   2 in pyspark.sql.functions.array_contains
    ***Test Failed*** 1 failures.
    ```


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