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

feat: Add type widening support to schema compatibility check #623

Open
OussamaSaoudi-db opened this issue Jan 6, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@OussamaSaoudi-db
Copy link
Collaborator

OussamaSaoudi-db commented Jan 6, 2025

Please describe why this is necessary.

Type widening allows a column with a narrower type to be read with a schema that has a wider type. For example, data stored as u16 can be read as u32 with type widening.

Describe the functionality you are proposing.

Modify the schema compatibility check function in schema_compat.rs to handle this case.

Additional context

A useful function to look at is check_cast_compat which does the type widening logic for arrow types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant