-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add include_data_types flag to generate_source macro #76
Add include_data_types flag to generate_source macro #76
Conversation
@clrcrl or @matt-winkler, could you please take a look? |
Maybe, @dbeatty10 could take a look? |
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.
@GSokol makes sense for codegen to have an option to include the optional data_type
metadata field -- thanks for opening!
I added some comments on some implementation details for the integration tests for you to explore. Could you take a look and see if any of them work?
Your current implementation is reasonable with a small footprint, and we can move forward with it if my suggested ideas all end up being dead-ends.
I've tried several approaches to generate the exact text, but it's not working. So returninig tests to dbt-labs@3a1267b state.
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.
Thanks for your work on this @GSokol ! 🚀
* Add include_data_types flag to generate_source macro * Add test for include_data_types * Fix test_generate_source_all_args for Redshift * Fix test_generate_source_all_args for Snowflake * Fix int types test_generate_source_all_args for Snowflake * Fix test_generate_source_all_args for BigQuery * Fix typo * Fix typo * trying to avoid db-specific type defenitions * Dummy fix * Dummy fix * Dummy fix * Dummy fix * Revert to initial schema I've tried several approaches to generate the exact text, but it's not working. So returninig tests to 3a1267b state. * Example of generating data types for columns * Update changelog * Remove comment [skip ci] Co-authored-by: Doug Beatty <doug.beatty@dbtlabs.com>
This is a:
main
dev/
branchdev/
branchDescription & motivation
Closes #75
Checklist