Skip to content

refactor: centralize date_bin per-row mapping#23034

Open
kumarUjjawal wants to merge 1 commit into
apache:mainfrom
kumarUjjawal:feat/centralize-data-bin
Open

refactor: centralize date_bin per-row mapping#23034
kumarUjjawal wants to merge 1 commit into
apache:mainfrom
kumarUjjawal:feat/centralize-data-bin

Conversation

@kumarUjjawal

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

date_bin had duplicated scalar and array per-row logic. This made timestamp scaling, TIME wrapping, and per-row error handling easier to diverge.

What changes are included in this PR?

  • Adds shared helpers for timestamp and TIME per-row binning.
  • Routes scalar and array timestamp/TIME paths through the shared helpers.
  • Extracts shared month shifting logic.
  • Hoists the TIME source/origin guard out of each TIME branch.
  • Adds scalar/array parity tests and TIME origin guard coverage.

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions Bot added the functions Changes to functions implementation label Jun 19, 2026
@Jefffrey

Copy link
Copy Markdown
Contributor

is there some overlap with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Centralize date_bin per-row mapping for scalar and array inputs

2 participants