-
-
Notifications
You must be signed in to change notification settings - Fork 336
Add Builtin Checks for Polars Support #1408
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
Add Builtin Checks for Polars Support #1408
Conversation
Signed-off-by: AndriiG13 <[email protected]>
@@ -87,7 +87,7 @@ def check_dtype( | |||
|
|||
if schema.dtype is not None: | |||
obj_dtype = check_obj.schema[schema.name] | |||
passed = obj_dtype is schema.dtype | |||
passed = obj_dtype.is_(schema.dtype) |
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.
Because some dtypes objects are in instantiated in the schema, for instance Duration(time_unit="us")
, the is
comparison doesn't work here. So I used the is_
method provided by the Polars DataType
API instead
Looks great @AndriiG13 ! Let me know if you need any help with the type engine implementations. |
Signed-off-by: AndriiG13 <[email protected]>
Signed-off-by: AndriiG13 <[email protected]>
Signed-off-by: AndriiG13 <[email protected]>
Signed-off-by: AndriiG13 <[email protected]>
Signed-off-by: AndriiG13 <[email protected]>
Signed-off-by: AndriiG13 <[email protected]>
Added Polars builtin-checks as per effort to support Polars.
Implements #1421
TODO: