[SQL] SPARK-1571 Mistake in java example code