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

Added a converter for xyt csv files to avro #3499

Merged
merged 3 commits into from
Oct 9, 2024
Merged

Conversation

frievoe97
Copy link
Collaborator

@frievoe97 frievoe97 commented Oct 1, 2024

The new CSVToAvroConverter class converts an xyt csv file into an avro xyt file. The paths for both the input CSV and the output AVRO file need to be provided. Additionally, the projection and the name of the dataset (e.g., "Emissions") can be passed as optional parameters.

@frievoe97 frievoe97 marked this pull request as ready for review October 1, 2024 13:46
@frievoe97 frievoe97 requested review from rakow and simei94 October 1, 2024 13:46
Copy link
Contributor

@simei94 simei94 left a comment

Choose a reason for hiding this comment

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

looks good to me

@simei94
Copy link
Contributor

simei94 commented Oct 1, 2024

@frievoe97 @rakow at some point we should think about a AvroUtils class, which then has writeAvro / readAvro methods. I wrote my own read / write methods on several occasion, this could be generalized.

@frievoe97 frievoe97 merged commit c7df7e9 into master Oct 9, 2024
49 checks passed
@frievoe97 frievoe97 deleted the csv-to-avro-converter branch October 9, 2024 12:04
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.

3 participants