Skip to content

[MINOR][SQL] Document TIME as an accepted histogram_numeric input type - #58927

Open
stevomitric wants to merge 1 commit into
apache:masterfrom
stevomitric:stevomitric/histogram-numeric-time-doc
Open

stevomitric wants to merge 1 commit into
apache:masterfrom
stevomitric:stevomitric/histogram-numeric-time-doc

Conversation

@stevomitric

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add time to the list of accepted datatypes for histogram_numeric expression.

Why are the changes needed?

To complete DESCRIBE FUNCTION histogram_numeric.

Does this PR introduce any user-facing change?

Yes, docs only.

How was this patch tested?

Existing ExpressionInfoSuite and ExpressionsSchemaSuite.

Was this patch authored or co-authored using generative AI tooling?

No.

histogram_numeric has accepted TIME columns since SPARK-57557 (its inputTypes include
AnyTimeType and it handles `case _: TimeType`), but its @ExpressionDescription -- shown by
DESCRIBE FUNCTION histogram_numeric -- still listed only "numeric, date, timestamp, or
interval". Add "time" to the expr argument's type list, matching the sibling
approx_percentile / percentile docs that were updated in that PR.

Co-authored-by: Isaac <no-reply@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant