Skip to content

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
@HawaiianSpork HawaiianSpork force-pushed the schema-adapter-top-level branch from 15618af to 631ff7d Compare May 26, 2024 18:39
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.
@HawaiianSpork HawaiianSpork force-pushed the schema-adapter-top-level branch from 631ff7d to a6fa3d9 Compare May 26, 2024 18:55
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
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.

2 participants