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

Fix MySQL errors #180

Merged
merged 13 commits into from
Nov 22, 2024
Merged

Conversation

Sevenannn
Copy link
Contributor

@Sevenannn Sevenannn commented Nov 21, 2024

  • Remove text message from dbconnection::Error::UnableToGetSchema. This error is widely used within the get_schema function itself, which really should just bubble up the internal error instead of wrapping duplicated Unable to get schema:, error message Unable to get schema: should be set and handled by caller of the get_schema function, for example, in sql_provider_datafusion::Error.
  • Update the column type message to include column name information.
  • Add file issue guide for catastrophic error caused by bugs in datafusion-table-providers, and bugs caused by things currently unsupported in the repo
  • Add MySQL manual reference for MySQL query errors

Besides changes for MySQL, this PR also include changes for instructing users to file an issue for DuckDB type related errors.

Before:
image
After:
image

@Sevenannn Sevenannn marked this pull request as ready for review November 21, 2024 23:21
src/sql/db_connection_pool/dbconnection.rs Outdated Show resolved Hide resolved
src/sql/db_connection_pool/dbconnection/mysqlconn.rs Outdated Show resolved Hide resolved
src/sql/db_connection_pool/dbconnection/mysqlconn.rs Outdated Show resolved Hide resolved
src/sql/db_connection_pool/dbconnection/mysqlconn.rs Outdated Show resolved Hide resolved
@sgrebnov sgrebnov merged commit 4d24e2a into datafusion-contrib:spiceai Nov 22, 2024
3 checks passed
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.

4 participants