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

Add etl.Metadata for passing task metadata to parsers #1117

Merged
merged 4 commits into from
Jun 2, 2023

Conversation

stephen-soltesz
Copy link
Contributor

@stephen-soltesz stephen-soltesz commented Jun 1, 2023

This change adds a new type etl.Metadata and modifies the etl.Parser interface to accept this structure instead of the ad-hoc map[string]bigquery.Value map.

This change eliminates unused fields in the map (i.e. "attempt"=1), uses standard names for the ArchiveURL (rather than "filename", which is ambiguous with the parser's use of ParseInfo.Filename), and eliminates type casts to recover values from the bigquery.Value type.

While this alters the parser interface, this is a code health improvement, and there should be no users of this interface outside this repo. This change does not alter default behavior.

Part of:


This change is Reviewable

@stephen-soltesz stephen-soltesz changed the title Add etl.ParserMetadata for passing task metadata to parsers Add etl.Metadata for passing task metadata to parsers Jun 1, 2023
Copy link
Contributor

@cristinaleonr cristinaleonr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@stephen-soltesz stephen-soltesz merged commit f4993ea into main Jun 2, 2023
@stephen-soltesz stephen-soltesz deleted the sandbox-soltesz-parser-sizes2 branch June 2, 2023 14:52
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

Successfully merging this pull request may close these issues.

2 participants