Chore!: Replace strings with SamplerType enum#2565
Conversation
for more information, see https://pre-commit.ci
|
SamplerType enumSamplerType enum
m1n0
left a comment
There was a problem hiding this comment.
LGTM, out of curiosity - is the motivation to separate internal from cloud types even though they match just for the sake of separation or do you have anything else in mind?
Separation only really. When working with the sampling functionality I didn't want to use the magic string Since the sampling is part of our SQL AST, I figured it was best to introduce a new type rather than create a dependency from AST on cloud types. We've talked about extracting the AST in a separate package before; those kinds of dependencies would block that. |



Description
Please provide a description of your changes:
soda-extensionswill need to use theSamplerTypeenum instead of strings. The only practical impact is in tests. It is not used in the packages anywhere.Checklist
I verified this PR does not break soda-extensions.This PR breaks extensions. Fix is prepared in https://github.com/sodadata/soda-extensions/pull/239