Skip to content

BigQuery temporary table creation fails if table_tmp uses a GCS path with hierarchy #691

@mayurbarge

Description

@mayurbarge

Sling version:

1.5.3

What is the Operating System?

Mac

Do you have a CLI Pro/Platform subscription?

No

Description of the issue

We have a pipeline which loads data from SFTP -> BigQuery.
We need to keep the temporary files in staging GCS location, and have them arranged in a tree like bucket in GCS.
Like
gs://mybucket/sling_temp/google_dataset/2025-01-01/google_ads/file.csv
gs://mybucket/sling_temp/google_dataset/2025-01-01/google_search/file.csv

If I set
'target_options': {'table_tmp': 'google_dataset/2025-01-01/google_ads/file.csv'}}
It fails while creating temporary tables in BigQuery as forward slashes, dashes are not allowed in the BigQuery.

There is currently no provision to pass GCS path as an additional parameter, same table_tmp config is used in staging and bigquery causing a conflict.

This is not supported currently.

Replication Configuration

No special conf is necessary. paths are not supported.

Log Output

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions