Skip to content

Conversation

@syvb
Copy link
Contributor

@syvb syvb commented Nov 15, 2022

pgx 0.6.0 will make some changes to error handling that will affect how the map_series pipeline function works. This PR adds some tests to verify that map_series behaves correctly when the mapping function throws an error or returns NULL.

@syvb syvb changed the title Add tests for panics in map_series mapping function Add tests for errors in map_series mapping function Nov 15, 2022
}

#[pg_test]
#[should_panic = "division by zero"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. For some reason, we thought we had to use #[pg_test(error = "...")] and we could not get that to work under github actions even though it works locally on mac and linux. I'll have a look at resurrecting all those disabled tests...

Copy link
Contributor Author

@syvb syvb Nov 16, 2022

Choose a reason for hiding this comment

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

Support for more test attributes is new in 0.5.0 – I'm surprised it ever worked prior to 0.5.0.

@syvb
Copy link
Contributor Author

syvb commented Nov 17, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 17, 2022

@bors bors bot merged commit bd9b1d9 into main Nov 17, 2022
@bors bors bot deleted the sv/map_series-tests branch November 17, 2022 14:04
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.

3 participants