Skip to content

Commit

Permalink
rename end_of_month_date to end_of_month_date_pacific
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-costanzo committed Jan 4, 2024
1 parent fc11652 commit ba53a63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions warehouse/models/mart/payments/_payments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ models:
description: |
`source_record_id` of the Cal-ITP defined organization (from `dim_organizations`) associated with this payments activity.
The mapping of organization records to payments entities is manually maintained in a seed file.
- name: end_of_month_date
- name: end_of_month_date_pacific
description: |
The last day of the month of the aggregation_datetime in Pacific Time (involves conversion of aggregation_datetime to Pacific Time).
This column is primarily for use in BI tooling to support consistent dates across activity types.
Expand Down Expand Up @@ -276,7 +276,7 @@ models:
description: '{{ doc("lp_settlement_id") }}'
- *organization_name
- *organization_source_record_id
- name: end_of_month_date
- name: end_of_month_date_pacific
description: |
The last day of the month in Pacific Time (involves conversion of record_updated_timestamp_utc to Pacific Time).
This column is primarily for use in BI tooling to support consistent dates across activity types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fct_payments_aggregations AS (
participant_id,
organization_name,
organization_source_record_id,
LAST_DAY(EXTRACT(DATE FROM aggregation_datetime AT TIME ZONE "America/Los_Angeles"), MONTH) AS end_of_month_date,
LAST_DAY(EXTRACT(DATE FROM aggregation_datetime AT TIME ZONE "America/Los_Angeles"), MONTH) AS end_of_month_date_pacific,
LAST_DAY(EXTRACT(DATE FROM aggregation_datetime), MONTH) AS end_of_month_date_utc,
aggregation_id,
has_micropayment,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fct_payments_settlements AS (
WHEN settlement_type = "CREDIT" THEN -1*(transaction_amount)
WHEN settlement_type = "DEBIT" THEN transaction_amount
END AS transaction_amount,
LAST_DAY(EXTRACT(DATE FROM record_updated_timestamp_utc AT TIME ZONE "America/Los_Angeles"), MONTH) AS end_of_month_date,
LAST_DAY(EXTRACT(DATE FROM record_updated_timestamp_utc AT TIME ZONE "America/Los_Angeles"), MONTH) AS end_of_month_date_pacific,
LAST_DAY(EXTRACT(DATE FROM record_updated_timestamp_utc), MONTH) AS end_of_month_date_utc,
imputed_type,
acquirer,
Expand Down

0 comments on commit ba53a63

Please sign in to comment.