Github user mgaido91 commented on a diff in the pull request: https://github.com/apache/spark/pull/19774#discussion_r152295430 --- 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 -- isn't it better to reset them to prevent possible future tests eventually added after these lines to be influenced? If no, I can remove them.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org