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

Date casting issue causes silent errors in redshift #452

Closed
tuvaforrest opened this issue May 2, 2024 · 0 comments · Fixed by #512
Closed

Date casting issue causes silent errors in redshift #452

tuvaforrest opened this issue May 2, 2024 · 0 comments · Fixed by #512
Assignees
Labels
bug Something isn't working

Comments

@tuvaforrest
Copy link
Contributor

Describe the bug
financial_pmpm in redshift (and likely postgres) is not building individual member months for pharmacy, only grouping all spend under a null member month

financial_pmpm__patient_spend_with_service_categories.sql has this line.

The redshift dispatch of the macro requires the input format to be of one of four formats or else it defaults to null, and the call from the above model does not use one of them. that makes all of the dates null.

We can just get rid of the cast in that model. the staging model it pulls from is already casting it as a date.

To Reproduce
run the project in redshfit with pharmacy data. All records with Pharmacy as service category 1 will have a null member month. they are broken out by real member months when using other adapters

Expected behavior
pharmacy service category spend should be broken out by member months

Screenshots
image

Environment

  • Package version (e.g. 0.6.0): 0.8.0
  • Data warehouse (e.g. Snowflake): Redshift

Additional context

@tuvaforrest tuvaforrest added the bug Something isn't working label May 2, 2024
@sarah-tuva sarah-tuva self-assigned this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants