Skip to content

Commit

Permalink
Ignore out of range integers in generative tests
Browse files Browse the repository at this point in the history
* example error:

```
FAILED tests/generative/test_query_model.py::test_query_model - sqlalchemy.exc.ProgrammingError: (trino.exceptions.TrinoUserError) TrinoUserError(type=USER_ERROR, name=NUMERIC_VALUE_OUT_OF_RANGE, message="Out of range for integer: 1.8429909189388E13", query_id=20240514_010919_13401_gcpd9)
```
  • Loading branch information
madwort committed May 14, 2024
1 parent eaa5eb2 commit 28864ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/generative/ignored_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ class IgnoredError(enum.Enum):
sqlalchemy.exc.DBAPIError,
re.compile(r".+TrinoQueryError.+Value \w+ exceeds MAX_INT.+"),
),
(
sqlalchemy.exc.ProgrammingError,
re.compile(".+TrinoUserError.+Out of range for integer.+"),
),
],
IgnoredError.DATE_OVERFLOW: [
# The variable strategy will sometimes result in date operations that construct
Expand Down

0 comments on commit 28864ac

Please sign in to comment.