-
Notifications
You must be signed in to change notification settings - Fork 11
feat:Fir 11238 python sdk support new data types #148
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
feat:Fir 11238 python sdk support new data types #148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add integration tests for extended date and timestamps?
tests/unit/async_db/conftest.py
Outdated
| "1.0387398573", | ||
| "some text", | ||
| "2019-07-31", | ||
| "2020-07-31", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New dates extended the range below 1970 so let's reflect this in a test (despite it being a unit test) e.g. 1860-01-31, which was not possible with regular DATE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, agree
| assert parse_value("2021-12-31 23:59:59", datetime) == datetime( | ||
| 2021, 12, 31, 23, 59, 59 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the same test be there for date32?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
date32 doesn't support milliseconds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see what you mean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
Kudos, SonarCloud Quality Gate passed! |








Added support for
decimal,date32anddatetime64types.Added unit tests and for decimal added integration tests