-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Labels
featureThis is is requesting a new featureThis is is requesting a new featurenew platformRequesting a new platformRequesting a new platform
Description
Is your feature request related to a problem? Please describe.
I am using the dbt-athena adapter which was recently taken over by dbt-labs and was announced as being GA. AutomateDV complains that it does not have the three following macros:
- athena__cast_date
- athena__cast_datetime
- athena__get_escape_characters
Describe the solution you'd like
Add these macros to the project. They seem relatively easy to add. As I am new to the project, I might be missing the nuances and complexities of adding a new adapter.
Describe alternatives you've considered
None
Additional context
The Athena escape character is a double quote.
The casting can be done along the lines of:
date(date_parse('2022-10-20', '%Y-%m-%d'))
date_parse('2022-10-20 05:00:01', '%Y-%m-%d %h:%i:%s')
from_iso8601_timestamp('2022-10-20T05:00:01.000Z')
I'm waiting on approval to contribute back but if someone can do this sooner than later, please feel free! 😄
zt-hky
Metadata
Metadata
Assignees
Labels
featureThis is is requesting a new featureThis is is requesting a new featurenew platformRequesting a new platformRequesting a new platform