### SUBSTRAIT_AGGREGATE_TEST: v1.0
### SUBSTRAIT_INCLUDE: extension:io.substrait:unsigned_integers
# basic: Basic unsigned integer examples
sum(('0', '1', '2', '20')::u!u8) = ('23')::u!u64?
sum(('100', '200', '50')::u!u16) = ('350')::u!u64?
sum(('2000000', '3217908', '629000', '100000', '0', '987654')::u!u32) = ('6934562')::u!u64?
sum(('1000000000000', '2000000000000', '3000000000000')::u!u64) = ('6000000000000')::u!u64?
# overflow: Examples demonstrating overflow behavior
sum(('18446744073709551614', '1', '1', '1', '1', '10000000000')::u!u64) [overflow:ERROR] = <!ERROR>
# null_handling: Examples with null as input or output
sum((Null, Null, Null)::u!u16) = Null::u!u64?
sum(()::u!u16) = Null::u!u64?
sum(('200', Null, '50', '0', Null, '100')::u!u32) = ('350')::u!u64?