update to Spark 1.1.0 and fixed a bug in rowCardinality