[BUILD FIX] Fix compilation of Spark SQL Java API.

The JavaAPI and the Parquet improvements PRs didn't conflict, but broke the build.