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

cast day_of attributes to bigint on Redshift #28

Merged
merged 3 commits into from
May 30, 2021

Conversation

sparcs
Copy link
Contributor

@sparcs sparcs commented May 30, 2021

Issue

The following fields store double values on Redshift (see: #26 )

  • day_of_week
  • day_of_month
  • day_of_year

Fix

Cast to bigint specifically for Redshift

Tests

The tests iso_week_*, week_start_date, week_end_date, week_of_year are failing when run on Redshift as shown in the attached logs. Noticed another pull request to fix the iso_week issue and issue #25; and presume it's the same problem with other tests. However, day_of_* tests are passing. So, it seems like the fix hasn't broken anything.

test-output.log

@clausherther clausherther self-requested a review May 30, 2021 22:52
Copy link
Contributor

@clausherther clausherther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for those logs, I think that's the same issue as outlined in #11 but I don't have a good answer on that since I can't test on Redshift.

@clausherther clausherther merged commit 869bf33 into calogica:main May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants