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

Standardise code and fix type error #52

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

Yibo-Chen13
Copy link
Contributor

No description provided.

@Yibo-Chen13 Yibo-Chen13 changed the title Fix numpy column type error. Standardise code style and change Clickhouse style type. Oct 21, 2024
@Yibo-Chen13 Yibo-Chen13 changed the title Standardise code style and change Clickhouse style type. Standardise code and change Clickhouse style type. Oct 21, 2024
@Yibo-Chen13 Yibo-Chen13 force-pushed the fixed-bugs branch 2 times, most recently from df39e30 to ee25983 Compare October 22, 2024 01:36
@Yibo-Chen13 Yibo-Chen13 changed the title Standardise code and change Clickhouse style type. Standardise code and fix type error Oct 22, 2024
@Yibo-Chen13 Yibo-Chen13 force-pushed the fixed-bugs branch 4 times, most recently from 348c7bf to 7f212d0 Compare October 22, 2024 04:15
@@ -34,7 +34,7 @@ def before_write_items(self, items, nulls_map=None):
items[i] = null_value
continue

if type(item) != date:
if item is not date:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isinstance(item, date)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't use isinstance here,datetime is a instance of date,that make a mistake.A more accurate approach uses type(item) is not date,I've modified it just now.

@Yibo-Chen13 Yibo-Chen13 force-pushed the fixed-bugs branch 2 times, most recently from 2e68316 to a1201eb Compare October 22, 2024 06:01
@Yibo-Chen13 Yibo-Chen13 merged commit 8aad2aa into timeplus-io:develop Oct 22, 2024
16 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.

2 participants