Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer Data Platform: pass schema as option to PTransform #88

Open
iht opened this issue Jan 1, 2025 · 0 comments
Open

Customer Data Platform: pass schema as option to PTransform #88

iht opened this issue Jan 1, 2025 · 0 comments

Comments

@iht
Copy link
Member

iht commented Jan 1, 2025

Schema is a local file that is not part of the Python package, so this is going to fail in Dataflow probably:

# Get the schema of bigquery output table
with open('./schema/unified_table.json') as schema_file:
output_schema = json.load(schema_file)

The schema should be read when the pipeline is launched and passed as a string to the PTransform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant