apache/spark — pull request #954 by ktham (2014-06-03 20:27:16+00:00)
Title: Fix example spark sql program ...

This fixes an example spark sql program which failed at the getInt() call.
getInt() was called on a COUNT query whose output datatype is of type Long and casting a Long to Int is an illegal operation

In this commit:
* use getLong(0) instead of getInt(0)
* Fix typos in comments
* add call parens to collect() call for consistency