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

Assorted formatting / logging updates #1518

Merged
merged 6 commits into from
Nov 13, 2024
Merged

Assorted formatting / logging updates #1518

merged 6 commits into from
Nov 13, 2024

Conversation

plypaul
Copy link
Contributor

@plypaul plypaul commented Nov 10, 2024

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.

raise RuntimeError(
str(
LazyFormat(
f"{self} was created with a SQL node that is not a {SqlSelectStatementNode}",
Copy link
Contributor

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.

Copy link
Contributor

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!

Copy link
Contributor Author

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.
Base automatically changed from p--cte--12 to main November 13, 2024 05:08
@plypaul plypaul merged commit e9c024b into main Nov 13, 2024
14 checks passed
@plypaul plypaul deleted the p--cte--13 branch November 13, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants