GitHub user mgaido91 opened a pull request: https://github.com/apache/spark/pull/22036
[SPARK-25028][SQL] Avoid NPE when analyzing partition with NULL values ## What changes were proposed in this pull request? `ANALYZE TABLE ... PARTITION(...) COMPUTE STATISTICS` can fail with a NPE if a partition column contains a NULL value. The PR avoids the NPE, replacing the `NULL` values with the default partition placeholder. ## How was this patch tested? added UT You can merge this pull request into a Git repository by running: $ git pull https://github.com/mgaido91/spark SPARK-25028 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/22036.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 #22036 ---- commit ee64a6ba3d41c0f3d6776d7ccbd9af7185d8a3ad Author: Marco Gaido <marcogaido91@...> Date: 2018-08-08T12:07:33Z [SPARK-25028][SQL] Avoid NPE when analyzing partition with NULL values ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org