-
Notifications
You must be signed in to change notification settings - Fork 163
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
MySQL source parsing NULL value error #111
Comments
Hi @ztsweet, in order to reproduce the error, can you let us know the database source and dataframe destination that you are using? And also what data types are included in your query result? |
@wangxiaoying I have edited the question again |
@ztsweet Thanks for the details. Can you also check what is the data type of ORDER_ID in MySQL? |
@wangxiaoying in mysql the type is ``ORDER_ID |
@ztsweet It seems like we have a bug when parsing NULL values in MySQL source. Will fix this issue it in our next release (0.2.1). |
@wangxiaoying thanks |
Hi @ztsweet, we just released the connectorx-0.2.1a1 which has fixed the NULL value bug in mysql. You can try it by using If all tests go well, we plan to release the 0.2.1 version in early October. Please feel free to have a try and let us know if you found any issue. |
Are you using Python or Rust?Python. What version of polars are you using?polars==0.10.27 What operating system are you using polars on?CentOS Linux release 7.9.2009 (Core) Describe your bug.
Note: No error occurs if all rows have values Errorsimport polars as pl
pl.read_sql("select column1 from Table", <url_to_database>) Replicated the issue using If column1 TYPE = MEDIUMTEXT
If column1 TYPE = DATETIME
What is the expected behavior?Read empty values in dataframe just like pandas |
Hi @hamzamohdzubair thanks for reporting the issue. It looks like the null data does not match with the type we fetched. May I ask which database you are using? Also what is the type for |
@wangxiaoying updated my previous comment |
@wangxiaoying Also, why am i unable to catch the |
@hamzamohdzubair , thanks for the info. It is weird since we have the mysql test case when As for the PanicException, I think the panic happens in the underlying mysql driver. I will also take a look at it if I can reproduce this error. |
Hi @hamzamohdzubair, thanks for waiting. For the first error on For the second error on UPDATE: |
The text was updated successfully, but these errors were encountered: