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

Use arrow dictionary type for mysql enum type #119

Merged

Conversation

Sevenannn
Copy link
Contributor

TODO: There's something need to be resolved in linter and may need conflict resolve after my other PRs are merged, othe than that the logic won't be changed much

  • Use arrow dictionary type for MySQL enum type, this will enables a more efficient memory usage.
  • Update MySQL type mapping for enum & set related type, since the values are exported as MYSQL_TYPE_STRING in c api: https://dev.mysql.com/doc/c-api/9.0/en/c-api-data-structures.html
  • Use the flags to determine the enum type in rows_to_arrow
  • Add test to cover the changes

@sgrebnov sgrebnov merged commit 4a61680 into datafusion-contrib:spiceai Sep 30, 2024
3 checks passed
hozan23 pushed a commit to hozan23/datafusion-table-providers that referenced this pull request Oct 11, 2024
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

Successfully merging this pull request may close these issues.

3 participants