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

Add a "mapping" struct for types #172

Closed
jdye64 opened this issue Feb 6, 2023 · 0 comments · Fixed by #173
Closed

Add a "mapping" struct for types #172

jdye64 opened this issue Feb 6, 2023 · 0 comments · Fixed by #173
Labels
enhancement New feature or request

Comments

@jdye64
Copy link
Contributor

jdye64 commented Feb 6, 2023

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
There are multiple codebases used in the arrow-datafusion-python project. You have

  • Arrow DataTypes
  • Python types
  • SQL Types

and they all need a way to "map" to one another. By "map" I mean if I am working in Python and have a given type, say str, I would like to know what type that correlates to in both Arrow DataTypes and SQL. Likewise I might have a SQL query that returns a VARCHAR and like to know which type I should use in Python.

Describe the solution you'd like
A Rust struct that can house the mappings of types and provide simple static methods for acquiring those type mappings.

Describe alternatives you've considered
None

Additional context
None

@jdye64 jdye64 added the enhancement New feature or request label Feb 6, 2023
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

Successfully merging a pull request may close this issue.

1 participant