-
Notifications
You must be signed in to change notification settings - Fork 0
Refactoring/#294 refactor column name type #295
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
base: main
Are you sure you want to change the base?
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.
Diff is quite large for this file.
replaced by property .rendered
A general comment. The |
Thanks for this comment. I needed to put class Reason is that each subclass still (and again) contains a class method This also is a reason for not naming the subclasses However if you prefer then I can also replace methods This would then enable
|
I didn't notice first that the |
exasol/analytics/schema/column.py
Outdated
|
||
|
||
@dataclass(frozen=True, repr=True, eq=True) | ||
class BooleanColumn(Column): | ||
class BooleanColumn(ColumnType): |
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.
if the super type is ColumType, I am not sure if BooleanColumn is an appropriate name , some for the other ones
exasol/analytics/schema/column.py
Outdated
@@ -31,7 +27,7 @@ def __get__(self, owner_self, owner_cls): | |||
|
|||
|
|||
@dataclass(frozen=True, repr=True, eq=True) | |||
class Column: | |||
class ColumnType: |
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.
would SQLType maybe more correct?
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.
Not too bad in my eyes. I only already have a class SqlType
in column_type_utils.py already, that should be renamed then.
Replaced method simple() of subclasses of ColumnType by top-level functions
return self.fget(owner_cls) | ||
|
||
|
||
@dataclass(frozen=True, repr=True, eq=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.
Compared to the last commit, the classes in this file have been moved from column.py
.
Closes #294
Closes #292