-
Notifications
You must be signed in to change notification settings - Fork 961
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: added TableStats model #1503
Conversation
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
@@ -94,7 +202,7 @@ def _create_node_iterator(self) -> Iterator[GraphNode]: | |||
""" | |||
node = GraphNode( | |||
key=self.get_table_stat_model_key(), |
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.
Let's rename this function to get_column_stat_model_key?
RESOURCE_STAT_RELATION_TYPE = 'STAT' | ||
|
||
|
||
class TableStats(GraphSerializable, TableSerializable): |
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 are the stats that we want to surface? There are some metadata on the left side panel in table details page, for example, total number of rows, etc. Will some of the metadata be moved to this stats model?
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.
As of right now we are indexing usage stats like dau, query count, and service specific usage like for airflow, flyte, etc. In the future however we could use this to index stats about the data in the table as well, similar to how we already do for columns.
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: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
…mundsen into asm-stat-table-databuilder
* feat: added TableStats model Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * lint Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * ... Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * implemented feedback Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * updated unit test Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> Signed-off-by: Amom Mendes <amommendes@hotmail.com>
* feat: added TableStats model Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * lint Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * ... Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * implemented feedback Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * updated unit test Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> Signed-off-by: Ozan Dogrultan <ozan.dogrultan@deliveryhero.com>
* feat: added TableStats model Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * lint Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * ... Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * implemented feedback Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * updated unit test Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
* feat: added TableStats model Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * lint Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * ... Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * implemented feedback Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com> * updated unit test Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
Signed-off-by: Allison Suarez Miranda asuarezmiranda@lyft.com
Summary of Changes
Added TableStats model which allows adding Stats directly to table nodes rather than only to table columns.
Tests
Documentation
CheckList
Make sure you have checked all steps below to ensure a timely review.