-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix type hint to transformations.preview #1784
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1784 +/- ##
=======================================
Coverage 50.39% 50.39%
=======================================
Files 119 119
Lines 17502 17502
=======================================
Hits 8821 8821
Misses 8681 8681
|
@@ -502,7 +502,7 @@ def preview( | |||
self, | |||
query: str | None = None, | |||
convert_to_string: bool = False, | |||
limit: int = 100, | |||
limit: int | None = 100, |
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.
-
Does it work to pass None for all?
-
Also, I see that the API spec uses 10k for inferSchemaLimit instead of the 1k in the SDK. Perhaps update as well?
-
Looks like
timeout
i also missing from the params
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.
Yes it work for None
, will fix the other issues.
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.
Cool, I wonder why we call it preview if you can page through unlimited results? 🤔
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.
I think because you are actually not writing the results to the destination.
0e67182
to
3dec2da
Compare
Description
Please describe the change you have made.
Checklist:
If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.