Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mihaibudiu
Copy link
Contributor

Fixes #5448
Fixes #5449

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements the abs and sign functions for unsigned integer types (u8, u16, u32, u64, u128) to fix issues #5448 and #5449.

Changes:

  • Added abs implementations for unsigned integer types that return the value unchanged (since unsigned values are always non-negative)
  • Added sign implementations for all integer types (both signed and unsigned)
  • Added a regression test to verify the functionality

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
crates/sqllib/src/lib.rs Implements abs functions for unsigned types (u8-u128) and sign functions for all integer types with appropriate polymorphic function registrations
sql-to-dbsp-compiler/SQL-compiler/src/test/java/org/dbsp/sqlCompiler/compiler/sql/simple/Regression1Tests.java Adds test case for abs and sign functions on unsigned integers

@mihaibudiu mihaibudiu added this pull request to the merge queue Jan 19, 2026
Merged via the queue into main with commit fcbb747 Jan 19, 2026
1 check passed
@mihaibudiu mihaibudiu deleted the issue5448 branch January 19, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants