nevin_morgan
09/01/2020, 2:10 PMdouwe_maan
09/01/2020, 2:35 PMvalue_processor is a property of `SettingDefinition`: https://gitlab.com/meltano/meltano/-/blob/master/src/meltano/core/setting_definition.py#L38
Each of the dictionaries in a plugin definitions's settings array is a SettingDefinition : https://gitlab.com/meltano/meltano/-/blob/master/src/meltano/core/plugin/base.py#L150
This is the setting definition for target-snowflake 's schema setting: https://gitlab.com/meltano/meltano/blob/master/src/meltano/core/bundle/discovery.yml#L729-731
That's where you'd add value_processor: upcase_string
SettingDefinition finds a named value_processor by looking in the VALUE_PROCESSORS dictionary: https://gitlab.com/meltano/meltano/-/blob/master/src/meltano/core/setting_definition.py#L133-137
So this is where you'd add "upcase_string": upcase_string : https://gitlab.com/meltano/meltano/-/blob/master/src/meltano/core/setting_definition.py#L9
Since it's a property of a specific setting, that setting's raw string value will be passed as the only argument to the processor functionnevin_morgan
09/01/2020, 2:37 PMnevin_morgan
09/01/2020, 2:38 PMnevin_morgan
09/01/2020, 8:10 PM- name: schema
env: SF_SCHEMA
value: $MELTANO_EXTRACTOR_NAMESPACE
value_processor: upcase_stringdouwe_maan
09/01/2020, 8:11 PMnevin_morgan
09/01/2020, 8:11 PMdouwe_maan
09/01/2020, 8:12 PMmeltano CLI?nevin_morgan
09/01/2020, 8:13 PMmake docker_images and then running my project in the output image to verify. The schema isn't being upper cased so I will need to do some dumping and verify my function is being callednevin_morgan
09/01/2020, 8:13 PMnevin_morgan
09/01/2020, 9:28 PM