Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/19774#discussion_r152294075 --- Diff: sql/core/src/test/resources/sql-tests/inputs/describe-table-column.sql --- @@ -34,6 +34,19 @@ DESC FORMATTED desc_complex_col_table col; -- Describe a nested column DESC FORMATTED desc_complex_col_table col.x; +-- Test output for histogram statistics +SET spark.sql.statistics.histogram.enabled=true; +SET spark.sql.statistics.histogram.numBins=2; + +INSERT INTO desc_col_table values 1, 2, 3, 4; + +ANALYZE TABLE desc_col_table COMPUTE STATISTICS FOR COLUMNS key; + +DESC EXTENDED desc_col_table key; + +SET spark.sql.statistics.histogram.enabled=false; +SET spark.sql.statistics.histogram.numBins=256; --- End diff -- We don't need to reset the config, the test framework will reset the entire session after each test.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org