-
Notifications
You must be signed in to change notification settings - Fork 237
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: create data element along with syncing table #1193
Conversation
def get_data_element(self, data_element_name: str) -> DataElementTuple: | ||
"""Override this to get data element by name""" | ||
return None | ||
|
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.
is this needed ? If yes, the return type should be a tuple or none ?
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.
rest looks good to me.
@@ -534,9 +534,9 @@ def get_table_and_columns( | |||
""" | |||
pass | |||
|
|||
def get_data_element(self, data_element_name: str) -> DataElementTuple: | |||
def get_data_element(self, data_element_name: str) -> Optional[DataElementTuple]: |
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.
@AbstractMethod is also needed ?
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.
Please check this before landing
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.
didn't add AbstractMethod on purpose, for people they dont have data element, they dont have to implement this function.
* feat: create data element along with syncing table * comment
* feat: create data element along with syncing table * comment
When syncing a table, we'll create or update the data element if we find any data elements associated with any columns.