-
Notifications
You must be signed in to change notification settings - Fork 98
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 Fixes for the sql
Module
#1081
Conversation
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.
|
||
|
||
class SqlTable(PydanticCustomInputParser, FrozenBaseModel): | ||
@dataclass(frozen=True, order=True) |
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.
Oh nice, thanks! There was some reason we couldn't do this originally and I guess we forgot to clean it up later.
@@ -42,19 +42,19 @@ def parent_nodes(self) -> List[SqlQueryPlanNode]: # noqa: D | |||
@abstractmethod | |||
def accept(self, visitor: SqlQueryPlanNodeVisitor[VisitorOutputT]) -> VisitorOutputT: | |||
"""Called when a visitor needs to visit this node.""" | |||
pass | |||
raise NotImplementedError |
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.
This shouldn't matter, but I like the consistency.
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.
Yeah, it seems like that's what the docs suggest, though I've seen some conflicting examples.
Resolves #
Description
This PR makes fixes some minor issues found in the
sql
module. Please see view each commit separately.