Skip to content

feat(datafusion): evaluate immutable constant CALL arguments - #1290

Merged
JingsongLi merged 1 commit into
apache:mainfrom
JingsongLi:codex/fusion-call-constants
Nov 2, 2026
Merged

JingsongLi merged 1 commit into
apache:mainfrom
JingsongLi:codex/fusion-call-constants

Conversation

@JingsongLi

@JingsongLi JingsongLi commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Closes #1286.

The CALL dispatcher accepts literals but rejects CAST and other constant scalar expressions before invoking otherwise supported procedures.

Brief change log

  • Fold immutable scalar constant expressions with DataFusion's native coercion and simplifier.
  • Require non-NULL string/integer/boolean results, rejecting columns, subqueries, volatile functions, aggregates and windows.
  • Finish argument evaluation and validation before metadata changes while preserving name, duplicate and procedure validation.

Tests

API and Format

Adds SQLContext SQL capabilities. No storage-format or Rust public API changes.

Documentation

Documented syntax, type/null/error behavior and supported limits in docs/src/sql.md.

@leaves12138 leaves12138 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@JingsongLi
JingsongLi merged commit 1714a5b into apache:main Nov 2, 2026
15 checks passed
JingsongLi added a commit that referenced this pull request Nov 10, 2026
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.

[datafusion] Accept immutable scalar constant CALL arguments

2 participants