From 71fa12f773b9d8dfcde81ecf8f93134b4c162577 Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Thu, 1 Oct 2020 14:29:49 -0400 Subject: [PATCH] Fix invoicing SQL (#824) --- .../java/google/registry/beam/invoicing/sql/billing_events.sql | 2 +- .../google/registry/beam/invoicing/billing_events_test.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/google/registry/beam/invoicing/sql/billing_events.sql b/core/src/main/java/google/registry/beam/invoicing/sql/billing_events.sql index b2123c367..197f5267b 100644 --- a/core/src/main/java/google/registry/beam/invoicing/sql/billing_events.sql +++ b/core/src/main/java/google/registry/beam/invoicing/sql/billing_events.sql @@ -55,7 +55,7 @@ FROM ( FROM `%PROJECT_ID%.%DATASTORE_EXPORT_DATA_SET%.%REGISTRY_TABLE%` WHERE - enableInvoicing IS TRUE) ) AS BillingEvent + invoicingEnabled IS TRUE) ) AS BillingEvent -- Gather billing ID from registrar table -- This is a 'JOIN' as opposed to 'LEFT JOIN' to filter out -- non-billable registrars diff --git a/core/src/test/resources/google/registry/beam/invoicing/billing_events_test.sql b/core/src/test/resources/google/registry/beam/invoicing/billing_events_test.sql index 52edec0c2..1981a2d30 100644 --- a/core/src/test/resources/google/registry/beam/invoicing/billing_events_test.sql +++ b/core/src/test/resources/google/registry/beam/invoicing/billing_events_test.sql @@ -55,7 +55,7 @@ FROM ( FROM `my-project-id.latest_datastore_export.Registry` WHERE - enableInvoicing IS TRUE) ) AS BillingEvent + invoicingEnabled IS TRUE) ) AS BillingEvent -- Gather billing ID from registrar table -- This is a 'JOIN' as opposed to 'LEFT JOIN' to filter out -- non-billable registrars