Skip to content
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

Merged
merged 2 commits into from
Mar 9, 2023

Conversation

jczhong84
Copy link
Collaborator

When syncing a table, we'll create or update the data element if we find any data elements associated with any columns.

Comment on lines 537 to 540
def get_data_element(self, data_element_name: str) -> DataElementTuple:
"""Override this to get data element by name"""
return None

Copy link
Contributor

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 ?

Copy link
Contributor

@suryabhaskarkarri suryabhaskarkarri left a 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]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AbstractMethod is also needed ?

Copy link
Contributor

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

Copy link
Collaborator Author

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.

@jczhong84 jczhong84 merged commit 0113ba3 into pinterest:master Mar 9, 2023
@jczhong84 jczhong84 deleted the feat/loadde branch April 7, 2023 00:41
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Apr 11, 2023
* feat: create data element along with syncing table

* comment
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
* feat: create data element along with syncing table

* comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants