Source
FOCUS 1.0 sample
Result rows
17
Status
Adapted to v1.0
Execution
PrecomputedRead-only
Result snapshot (UTC)
2026-10-11

Shows effective cost of third-party marketplace sellers whose invoices come from a different entity (here Datadog and Red Hat sold through AWS). ServiceProviderName (v1.3+) is derived from provider_name, or publisher_name for marketplace sellers. The source test InvoiceIssuerName != ServiceProviderName is applied as publisher_name differing from invoice_issuer_name, because v1.0 provider_name ('AWS') never matches the legal invoice issuer name ('Amazon Web Services, Inc.').

Column adaptations (2)
  • ServiceProviderName → case when publisher_name is not null and publisher_name is distinct from invoice_issuer_name then publisher_name else provider_name end: v1.0 ProviderName for direct cloud services; v1.0 PublisherName for the marketplace sellers (Datadog, Red Hat) whose publisher differs from the invoice issuer, matching the v1.3+ seller semantics.
  • HostProviderName → provider_name: Marketplace operator / platform the seller is bought through; the seller's real infrastructure host is not recorded in v1.0.

Marketplace seller effective cost

Query results
Charge period startCharge period endService provider nameHost provider nameInvoice issuer nameTotal effective cost
2026-03-01 08:002026-03-01 09:00Datadog Inc.AWSAmazon Web Services, Inc.$5.04
2026-03-02 16:002026-03-02 17:00Red Hat Inc.AWSAmazon Web Services, Inc.$0.00
2026-03-03 22:002026-03-03 23:00Datadog Inc.AWSAmazon Web Services, Inc.$7.20
2026-03-09 02:002026-03-09 03:00Red Hat Inc.AWSAmazon Web Services, Inc.$0.00
2026-03-09 09:002026-03-09 10:00Red Hat Inc.AWSAmazon Web Services, Inc.$0.00
2026-03-10 16:002026-03-10 17:00Red Hat Inc.AWSAmazon Web Services, Inc.$0.00
2026-03-11 16:002026-03-11 17:00Datadog Inc.AWSAmazon Web Services, Inc.$2.88
2026-03-14 07:002026-03-14 08:00Datadog Inc.AWSAmazon Web Services, Inc.$3.60
2026-03-16 16:002026-03-16 17:00Red Hat Inc.AWSAmazon Web Services, Inc.$0.00
2026-03-18 21:002026-03-18 22:00Red Hat Inc.AWSAmazon Web Services, Inc.$0.00
2026-03-20 08:002026-03-20 09:00Datadog Inc.AWSAmazon Web Services, Inc.$7.20
2026-03-21 22:002026-03-21 23:00Datadog Inc.AWSAmazon Web Services, Inc.$7.20
2026-03-26 10:002026-03-26 11:00Red Hat Inc.AWSAmazon Web Services, Inc.$0.00
2026-03-26 21:002026-03-26 22:00Red Hat Inc.AWSAmazon Web Services, Inc.$0.00
2026-03-28 03:002026-03-28 04:00Red Hat Inc.AWSAmazon Web Services, Inc.$0.00
2026-03-30 19:002026-03-30 20:00Datadog Inc.AWSAmazon Web Services, Inc.$7.20
2026-03-30 23:002026-03-31Red Hat Inc.AWSAmazon Web Services, Inc.$0.00

17 rows. Scroll inside the table to see more.

Precomputed result

Inspect Postgres SQL and original FOCUS SQL

Postgres SQL, as run

select charge_period_start as charge_period_start,
       charge_period_end as charge_period_end,
       case when publisher_name is not null and publisher_name is distinct from invoice_issuer_name then publisher_name else provider_name end as service_provider_name,
       provider_name as host_provider_name,
       invoice_issuer_name as invoice_issuer_name,
       round(sum(effective_cost), 2) as total_effective_cost
from focus.cost_and_usage
where charge_period_start >= $1::timestamptz
  and charge_period_end < $2::timestamptz
  and publisher_name is not null and publisher_name is distinct from invoice_issuer_name
group by charge_period_start, charge_period_end, 3, provider_name, invoice_issuer_name
order by charge_period_start, total_effective_cost asc, service_provider_name
limit 500

Parameters: $1 = period_start, $2 = period_end

Original FOCUS SQL

SELECT
  ChargePeriodStart,
  ChargePeriodEnd,
  ServiceProviderName,
  HostProviderName,
  InvoiceIssuerName,
  ROUND(SUM(EffectiveCost),2) AS TotalEffectiveCost
FROM focus_data_table
WHERE ChargePeriodStart >= ? AND ChargePeriodEnd < ?
  AND InvoiceIssuerName != ServiceProviderName
GROUP BY
  ChargePeriodStart,
  ChargePeriodEnd,
  ServiceProviderName,
  HostProviderName,
  InvoiceIssuerName
ORDER BY TotalEffectiveCost ASC