GitHub user HyukjinKwon opened a pull request:

    https://github.com/apache/spark/pull/11169

    [SPARK-13260][SQL] count(*) does not work with CSV data source

    https://issues.apache.org/jira/browse/SPARK-13260
    This is a quicky fix for `count(*)`.
    
    When the `requiredColumns` is empty, currently it returns 
`sqlContext.sparkContext.emptyRDD[Row]` which does not have the count.
    
    Just like JSON datasource, this PR let the CSV datasource count the rows 
but do not parse each tokens.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/HyukjinKwon/spark SPARK-13260

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/11169.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #11169
    
----
commit b52e1564b578cddb35931af2dd0e9c2c9d97b6f3
Author: hyukjinkwon <gurwls...@gmail.com>
Date:   2016-02-11T08:42:00Z

    count(*) does not work with CSV data source

----


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