Skip to content

Support relative uris in config files

Ottomata requested to merge relative_param_paths into main

Two main changes:

  • stream_manager param types are UriAbsolute, which is a made up sub type of str with a registered jsonargparse deserializer. This allows relative uris / paths for params like stream_config_uri and schema_uris. This uses this type rather than jsonargparse path_type('u') directly so that we can get the values as a str without extra conversion. stream_manager can treat them as strs.

  • Custom uri resolve logic for specific ConnectorDescriptor options have been added to stream_manager.from_config. Explanation in comments, but this allows us to use relative URIs for these options, even though we don't declare their types anywhere directly.

Bug: T328478

Merge request reports