-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
Insert UUID column parse error if value is None #387
Comments
Same. |
Please add full steps to reproduce the issue. |
client = Client(..., settings={'use_numpy': True})
print(client.execute('SELECT version()'))
client.execute('CREATE TABLE IF NOT EXISTS tbl (id int, uuid_field UUID NULL) ENGINE = MergeTree PRIMARY KEY id')
df = pd.DataFrame({'id': [1], 'uuid_field': np.nan})
client.insert_dataframe('insert into tbl (id, uuid_field) values ', df) Out traceback:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If value of uuid column is null on insert, TypeError is raised instead of
errors.CannotParseUuidError
To Reproduce
Expected behavior
To simplify error handling, it would be nice to raise errors.CannotParseUuidError or send null if field is nullable
Versions
The text was updated successfully, but these errors were encountered: