-
Notifications
You must be signed in to change notification settings - Fork 5
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: Remove sqlmodel #165
Conversation
93d8b02
to
94dcd24
Compare
Foda, @thulio !!! Ótima iniciativa 😻 |
94dcd24
to
b0e39cb
Compare
Vou quebrar esse PR em partes menores/não relacionadas |
fc8b256
to
7d51243
Compare
2bbf8a9
to
640382b
Compare
640382b
to
60b8908
Compare
for dependency in getattr(task.model, "__depends_on__", []): | ||
dag.add_edge(dependency.unique_name(), task.model.unique_name()) | ||
for dependency in task.model.dependencies(): | ||
dag.add_edge(dependency.fullname, task.model.unique_name()) |
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.
Por que unique_name()
não é mais usado?
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.
Porque dependency
é do tipo Table
e não AmoraModel
.
Para AmoraModel
, unique_name() == __table__.fullname
388cb64
to
0aa97d0
Compare
|
||
@classmethod | ||
def dependencies(cls) -> Models: | ||
def dependencies(cls) -> List[Table]: |
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.
Algum motivo pra essa mudança ?
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.
O motivo tava no todo comentado:
# todo: Remover necessidade de __depends_on__ inspecionando a query e chegando ao modelo de origem
# tables: List[Table] = source.froms
🚀🚀🚀🚀🚀🚀 |
Esse PR faz amora depender apenas da lib sqlachemy, a qual tem suporte nativo para type-hinting