-
Notifications
You must be signed in to change notification settings - Fork 1k
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
chore: Add docstrings #3128
chore: Add docstrings #3128
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3128 +/- ##
==========================================
- Coverage 67.08% 58.26% -8.83%
==========================================
Files 175 209 +34
Lines 15889 17582 +1693
==========================================
- Hits 10659 10244 -415
- Misses 5230 7338 +2108
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Creates a TrinoSource object. | ||
|
||
Args: | ||
name (optional): Name for the source. Defaults to the table if not specified. |
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.
What happens if a query is specified instead?
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.
in that case, the name
must be specified
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.
Update the doc string to reflect that?
table (optional): Trino table where the features are stored. | ||
created_timestamp_column (optional): Timestamp column indicating when the | ||
row was created, used for deduplicating rows. | ||
field_mapping (optional): A dictionary mapping of column names in this data | ||
source to column names in a feature table or view. | ||
query (optional): The query to be executed to obtain the features. |
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.
Maybe we should be explicit that one of table
or query
should be specified.
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
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
db64862
to
fb54c7c
Compare
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: achals, felixwang9817, kevjumba The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it: These docstrings are necessary for RTD.
Which issue(s) this PR fixes:
Fixes #