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

Fix/example models #220

Merged
merged 6 commits into from
Oct 25, 2022
Merged

Fix/example models #220

merged 6 commits into from
Oct 25, 2022

Conversation

diogommartins
Copy link
Contributor

@diogommartins diogommartins commented Oct 24, 2022

  • 🐛 fix(examples): Adds models dependencies
  • 🐛 fix(examples): Fixes step_count_by_source.py group by clause
  • 🐛 fix(meta_queries): Fixes summarize tests
  • 🐛 fix(meta_queries): Fixes summarize for sourceless ephemeral models
  • ✨ feat(bigquery): Adds cte_from_dataframe function
  • ✨ feat(models): Adds AmoraModel.columns classmethod

Fixes #165

betowxyz
betowxyz previously approved these changes Oct 24, 2022
lemosflavio
lemosflavio previously approved these changes Oct 24, 2022
amora/models.py Outdated
Comment on lines 177 to 179
if cls.__model_config__.materialized == MaterializationTypes.ephemeral:
cte = cls.source()
return cte.columns
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Como o resultado de cls.source() não é cacheado, chamadas diferentes vão resultar instancias de Selectables diferentes, fico na dúvida se essa implementação não pode gerar problemas.

RFC @thulio @betowxyz @lemosflavio @devshy

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vou fazer o merge e seguir em frente. Qualquer coisa, podemos voltar nesse ponto antes de gerar uma release

@diogommartins diogommartins merged commit 0bf5d47 into main Oct 25, 2022
@diogommartins diogommartins deleted the fix/example-models branch October 25, 2022 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants