Skip to content

Support decimal operators with different scales in AST - #22122

Merged
rapids-bot[bot] merged 8 commits into
NVIDIA:mainfrom
davidwendt:ast-decimal-scales
Apr 20, 2026
Merged

Support decimal operators with different scales in AST#22122
rapids-bot[bot] merged 8 commits into
NVIDIA:mainfrom
davidwendt:ast-decimal-scales

Conversation

@davidwendt

@davidwendt davidwendt commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Description

Adds support for decimal types with different scales as operands in AST expressions.
This only required relaxing the type-matching check to ignore scale for decimals.
The existing AST logic was already setup to allow different decimal scale values in operands.
Most of the changes here are adding gtests.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt self-assigned this Apr 13, 2026
@davidwendt davidwendt added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Apr 13, 2026
@copy-pr-bot

copy-pr-bot Bot commented Apr 13, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@davidwendt

Copy link
Copy Markdown
Contributor Author

/ok to test

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Apr 14, 2026
@davidwendt
davidwendt marked this pull request as ready for review April 14, 2026 14:51
@davidwendt
davidwendt requested a review from a team as a code owner April 14, 2026 14:51
@davidwendt

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit dbb88a9 into NVIDIA:main Apr 20, 2026
228 of 230 checks passed
@davidwendt
davidwendt deleted the ast-decimal-scales branch April 20, 2026 13:22
shrshi pushed a commit to shrshi/cudf that referenced this pull request May 12, 2026
Adds support for decimal types with different scales as operands in AST expressions.
This only required relaxing the type-matching check to ignore scale for decimals.
The existing AST logic was already setup to allow different decimal scale values in operands.
Most of the changes here are adding gtests.

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Bradley Dice (https://github.com/bdice)
  - Shruti Shivakumar (https://github.com/shrshi)

URL: NVIDIA#22122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants