soda-sql
soda-sql copied to clipboard
Arithmetic Overflow Error in SQL Server
Describe the bug
Getting Overflow error for count validation.

I guess it is related to the query that it is being running to perform the calculations. In SQL Server, regular counts and sum leads to Overflow error when not being applied to bigint, for example (count_big in case of the count).
To Reproduce Steps to reproduce the behavior:
- Create a new test in
tables/something.ymlfor a big table - Run
soda scan tables/something.yml
Context
table_name: big_table
metrics:
- row_count
- missing_count
- values_count
- sum
tests:
- row_count > 0
OS: Python Version: Latest Soda SQL Version: Latest Warehouse Type: SQL Server