read_metadata_yaml
            ReadMetadataYAMLAction
¶
    
              Bases: PipelineAction
Reads schema metadata from a yaml file using the Schema model.
Example
Source code in src/cloe_nessy/pipeline/actions/read_metadata_yaml.py
                
            run(context, *, path=None, file_name=None, table_name=None, **_)
  
      staticmethod
  
¶
    Reads schema metadata from a yaml file using the Schema model.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| context | PipelineContext | The context in which this Action is executed. | required | 
| path | str | None | The path to the data contract directory. | None | 
| file_name | str | None | The name of the file that defines the schema. | None | 
| table_name | str | None | The name of the table for which to retrieve metadata. | None | 
Raises:
| Type | Description | 
|---|---|
| ValueError | If any issues occur while reading the schema, such as an invalid schema, missing file, or missing path. | 
Returns:
| Type | Description | 
|---|---|
| PipelineContext | The context after the execution of this Action, containing the table metadata. |