-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow to define certain destination capabilities via configuration #964
Comments
@steinitzu I could see you had to subclass the destination to change default decimals. why? it seems it is in the properties? so you can create |
Hey @rudolfix , yeah you could monkey-patch the property on client class and replace the factory method. This on both job client and sql client classes is the annoying part: class PostgresClient(InsertValuesJobClient):
capabilities: ClassVar[DestinationCapabilitiesContext] = capabilities() We should pass them to |
We could just remove the |
yeah that would work but:
could not be a classvar anymore but should be instantiated per instance. otherwise we'll get the initial values and those will never be modified. Also I'd just provide a few values to be configurable in |
Yeah I don't see why it needs to be a classvar either. Could be instance attr on client. Totally makes sense not to have everything configurable, the escape functions, max_query_length, etc are all fixed. |
maybe config param are base configspec from which current capabilities derive? the problem I see is that capabilities derive from context already and context is exclusively injected by context config provider so it won't be taken from toml etc. but 100% that can be solved :) |
Background
Some of the destination capabilities may be changed by the user, for example:
ideally we would allow user to change certain via
capabilities
ofDestination
and via configuration ieRequirements
The text was updated successfully, but these errors were encountered: