Closed nickc1 closed 1 year ago
Hey @nickc1, glad you've gotten a lot out of the package! Sorry for the (super) delayed response from me.
Question: Do you need year
+ month
+ day
to exist as separate columns? (They're not really independent of each other, right?)
The way I've done this before is by treating these as three components of the same composite "date" column, and then using the year_month_day
path macro instead of key_value
:
- name: my_date_column
data_type: date
vals:
macro: dbt.dates_in_range
args:
start_date_str: '2021-12-01'
end_date_str: '{{modules.datetime.date.today().strftime("%Y-%m-%d")}}'
in_fmt: "%Y-%m-%d"
out_fmt: "%Y-%m-%d"
path_macro: dbt_external_tables.year_month_day
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.
Hello!
Thank you for this awesome package. This could really help simplify our architecture.
I'm trying to find the best way to generate the partitions. Our data is currently partitioned in the following format:
I tried the following:
The above works, but since a cartesion product is performed under the hood, I end up recreating partitions multiple times. Is there a more efficient way to do this?
Thanks for the help! And thanks for putting this package together!