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

Skip to content

Conversation

@rivudhk
Copy link
Contributor

@rivudhk rivudhk commented Jan 27, 2026

Fixes: #4331

Copilot AI review requested due to automatic review settings January 27, 2026 19:51
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 adds comprehensive test coverage for unsigned integer types (TINYINT UNSIGNED, SMALLINT UNSIGNED, INTEGER UNSIGNED, BIGINT UNSIGNED) in the Python test suite. The tests verify that various SQL operations, functions, and expressions work correctly with unsigned integer types.

Changes:

  • Added test tables and views for generating unsigned integer test data using the datagen connector
  • Implemented tests for comparison operators, conditional expressions, and SQL predicates with unsigned integers
  • Added tests for arithmetic functions, trigonometric functions, and string operations applied to unsigned integers

Reviewed changes

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

File Description
python/tests/runtime_aggtest/unsigned_int_tests/test_un_int_tbl.py Defines test tables and views with unsigned integer columns using datagen connector for data generation
python/tests/runtime_aggtest/unsigned_int_tests/test_un_int_supported_functions.py Tests comparison operators, conditional logic, NULL handling, and string functions with unsigned integers
python/tests/runtime_aggtest/unsigned_int_tests/test_un_int_arith_fn.py Tests arithmetic and mathematical functions (trigonometric, logarithmic, rounding) with unsigned integers
python/tests/runtime_aggtest/unsigned_int_tests/main.py Entry point that imports all test modules and executes the unsigned integer test suite



class un_int_datagen_tbl(TstTable):
"""Define the table used by unsigned integer tests the uses datagen connector to generate data"""
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

Corrected grammar from 'the uses' to 'that uses'.

Suggested change
"""Define the table used by unsigned integer tests the uses datagen connector to generate data"""
"""Define the table used by unsigned integer tests that use the datagen connector to generate data"""

Copilot uses AI. Check for mistakes.
@rivudhk rivudhk force-pushed the unsigned_int branch 2 times, most recently from 936a184 to 5b750c5 Compare January 27, 2026 19:56
{
"id": 0,
"tiny_un_int": Decimal("8103.083927575384"),
"small_un_int": None,
Copy link
Contributor

Choose a reason for hiding this comment

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

why are these None?

# LEN
class un_int_len(TstView):
def __init__(self):
self.data = [{"tiny_int": 1, "small_int": 5, "intt": 10, "big_int": 19}]
Copy link
Contributor

Choose a reason for hiding this comment

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

didn't know that len works on numbers

@rivudhk rivudhk added this pull request to the merge queue Jan 28, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 28, 2026
@rivudhk rivudhk added this pull request to the merge queue Jan 28, 2026
Merged via the queue into main with commit 040f6ce Jan 28, 2026
1 check passed
@rivudhk rivudhk deleted the unsigned_int branch January 28, 2026 23:40
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.

[adapters][SQL] There are no tests for unsigned values

3 participants