Skip to content

Return files destination uris in all ToGCS operators #11323

@FHoffmannCode

Description

@FHoffmannCode

Description

Currently some storage operators return files destination uris list for example GoogleSheetsToGCSOperator. It would be a good idea to make all of such operators to return this list.

Use case / motivation

  1. Having list of destination uris for files transferred with operator is useful for debugging and troubleshooting
  2. Inconsistent operator behaviour might be confusing for users.

Edit (by @shahar1 on Jan. 31, 2026)
For operators that currently return a single entity, add the flag unwrap_single which controls whether the returned value is either list[obj] or obj (usually obj is str but could also be a dict). Until we apply consistency for all operators (unwrap_single=False), which will be a breaking change - set for now the default to return the single entity (unwrap_single=True).

Tracking (added by @shahar1 on Jan. 24, 2026)

All operators should return list[str] of destination URIs (gs://bucket/object).

To Do (Generated by AI, please double check if current situation is as described)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions