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

refactor: Move SchemaAdapter from parquet module to data source #10680

Merged
merged 2 commits into from
May 27, 2024

Conversation

HawaiianSpork
Copy link
Contributor

This is not a change in behavior except moving the public location of SchemaAdapter. SchemaAdapter was exposed in #10515 to allow callers to define their own implementation.

Let me know if you want me to create a corresponding issue.

Rationale for this change

This PR then changes the location so that SchemaAdapter could be used in other data sources since it isn't parquet specific.

What changes are included in this PR?

Moves the public location of SchemaAdapter from inside the parquet module to the datasource module.

Are these changes tested?

Reusing existing tests

Are there any user-facing changes?

This is an API change but the previous exposed API had not been released.

@github-actions github-actions bot added the core Core datafusion crate label May 26, 2024
This is not a change in behavior except moving the public location of SchemaAdapter.  SchemaAdapter was exposed
in apache#10515 to allow callers to define their own implementation.  This PR then changes the location so that it could be used in other
data sources.
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @HawaiianSpork -- this is very nicely done 👏

}
}

#[cfg(test)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Moving the tests to be along side the schema mapper makes a lot of sense

@alamb alamb merged commit 7c08a6f into apache:main May 27, 2024
23 checks passed
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
…he#10680)

* refactor: Move SchemaAdapter from parquet module to data source

This is not a change in behavior except moving the public location of SchemaAdapter.  SchemaAdapter was exposed
in apache#10515 to allow callers to define their own implementation.  This PR then changes the location so that it could be used in other
data sources.

* fix comments surrounding tests to be accurate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core datafusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants