Skip to content

[Subtask]: propagate numeric assignment context across DML paths #25752

Closed

Description

@ck89119

Parent Issue

Parent issue: #25705

Detail of Subtask

Propagate numeric assignment context through every DML statement shape after the arithmetic resolver is available.

Cover VALUES, direct and parenthesized INSERT ... SELECT, set operations, star expansion, legacy and modern insert paths,
UPDATE, and ON DUPLICATE KEY UPDATE. All paths must use one context API and must preserve the rule that an explicit
DOUBLE sibling overrides an exact target column.

Describe implementation you've considered

Establish the target-column/projection mapping before binding the affected arithmetic expression. Pass the target type as an
outer numeric context instead of rebuilding an already-bound AST or plan expression. Keep final assignment casts responsible
only for validating and storing the result.

Additional information

Add focused plan tests for each statement shape, values above 2^53, decimal and integer targets, approximate siblings,
metadata, and both legacy and modern planner paths.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions