Skip to content

Conversation

@Jefffrey
Copy link
Contributor

@Jefffrey Jefffrey commented Nov 26, 2025

Which issue does this PR close?

Rationale for this change

Originally:

As pointed out by @martin-g, even though we plan to remove NUMERICS (see #18092) we should probably add f16 first so we don't conflate adding new functionality with refactoring changes.

Updated:

#19727 removes NUMERICS for us, which surfaced a bug where f16 wasn't being coerced to f64. Turns out we didn't have f16 support in the logic calculating the potential coercions. Fixing this so f16 input to a signature expected f64 is now allowed and coerced.

What changes are included in this PR?

Support coercion of f16 to f64 as specified by signature.

Add tests for regr, percentile & covar functions.

Are these changes tested?

Added tests.

Are there any user-facing changes?

No.

@github-actions github-actions bot added logical-expr Logical plan and expressions sqllogictest SQL Logic Tests (.slt) labels Nov 26, 2025
@github-actions github-actions bot added the optimizer Optimizer rules label Nov 26, 2025
Copy link
Member

@martin-g martin-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Jefffrey Jefffrey marked this pull request as ready for review November 26, 2025 21:08
@Jefffrey Jefffrey changed the title feat: support f16 for covar, regr & percentile feat: support f16 in coercion ogic Jan 27, 2026
@Jefffrey Jefffrey changed the title feat: support f16 in coercion ogic feat: support f16 in coercion logic Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-expr Logical plan and expressions optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support f16 input for covariance/regr/percentile_cont

2 participants