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

Provide methods for normalizing the names of fields provided by ChangesetSource #113

Open
jpolchlo opened this issue Sep 26, 2019 · 2 comments

Comments

@jpolchlo
Copy link
Contributor

Pursuant to the conversation here, there are two different ways to name the fields provided by a changeset source. The streaming source (accessed by spark.read.format(Source.Changesets)) uses snake case for its variable names (e.g., created_at), while changeset ORC files tend to use camel case (createdAt). If one intends to use .as[Changeset] to convert to a Dataset, it will be necessary to use the latter convention.

We should provide the means to convert from one case structure to the other.

@jpolchlo
Copy link
Contributor Author

@mojodna
Copy link
Collaborator

mojodna commented Sep 26, 2019

Clarifying: streaming sources use camel case, ORC files typically use snake case (per https://github.com/mojodna/osm2orc).

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

2 participants