soda-sql icon indicating copy to clipboard operation
soda-sql copied to clipboard

Arithmetic Overflow Error in SQL Server

Open lucas-lm opened this issue 3 years ago • 0 comments

Describe the bug

Getting Overflow error for count validation.

image

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:

  1. Create a new test in tables/something.yml for a big table
  2. 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

lucas-lm avatar May 25 '22 06:05 lucas-lm