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

Allow aliasing individual columns from star macro. #230

Closed
wants to merge 1 commit into from
Closed

Allow aliasing individual columns from star macro. #230

wants to merge 1 commit into from

Conversation

elliottohara
Copy link
Contributor

Description & motivation

I love the star macro! I often find myself excluding columns just so I can alias them. This leads to less DRY code than I'd like, so I extended star to take an optional dictionary {colname:aliasname} and it will then alias the columns as expected.

Checklist

  • I have verified that these changes work locally
  • I have updated the README.md (if applicable)
  • I have added tests & descriptions to my models (and macros if applicable)

@elliottohara elliottohara requested a review from clrcrl as a code owner June 10, 2020 20:37
@@ -0,0 +1,16 @@

-- TODO : Should the star macro use a case-insensitive comparison for the `except` field on Snowflake?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I think it should, I'll PR that soon enough! :)

@clrcrl
Copy link
Contributor

clrcrl commented Jun 29, 2020

Kicking off the tests :)

@clrcrl
Copy link
Contributor

clrcrl commented Jun 29, 2020

Closing in favor of #245 (had to rebase)

@clrcrl clrcrl closed this Jun 29, 2020
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.

2 participants