-
Notifications
You must be signed in to change notification settings - Fork 96
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
Assorted formatting / logging updates #1518
Conversation
metricflow/dataset/sql_dataset.py
Outdated
raise RuntimeError( | ||
str( | ||
LazyFormat( | ||
f"{self} was created with a SQL node that is not a {SqlSelectStatementNode}", |
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.
Should we use the class name here instead of self
? That way the logs will be more consistent/searchable and any changing attributes can go in the other args.
Also, wondering why SqlSelectStatementNode
is in curly braces.
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 know this probably isn't an error you wrote - this doesn't need to block merge!
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.
Updated.
There are some cases where a description is not needed as it is added in other ways. e.g. when building a snapshot file, the description is added through snapshot helper methods.
This makes snapshot comparisons consistent between runs as the schema name will change.
This PR contains an assortment of updates related to logging / formatting. Although not really related, since they were small, they were put into a single PR. Please view by commit.