Skip to content

[FEATURE] Support Athena Adapter #251

@GabrielEisenbergOlympus

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:

  1. athena__cast_date
  2. athena__cast_datetime
  3. 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! 😄

Metadata

Metadata

Assignees

Labels

featureThis is is requesting a new featurenew platformRequesting a new platform

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions