airflow.providers.yandex.utils.fields

Module Contents

Functions

get_field_from_extras(extras, field_name[, default])

Get field from extras, first checking short name, then for backcompat checking for prefixed name.

airflow.providers.yandex.utils.fields.get_field_from_extras(extras, field_name, default=None)[source]

Get field from extras, first checking short name, then for backcompat checking for prefixed name.

Parameters
  • extras (dict[str, Any]) – Dictionary with extras keys

  • field_name (str) – Field name to get from extras

  • default (Any) – Default value if field not found

Returns

Field value or default if not found

Return type

Any

Was this entry helpful?