Skip to main content

Monthly production ingestion reference

Monthly production ingestion reference​

Use this document when you ingest the WELL_PRODUCTION_VOLUMES_MONTHLY share view from a client Databricks Delta Share into ComboCurve.

1. Purpose​

WELL_PRODUCTION_VOLUMES_MONTHLY stores monthly production volumes and operational measurements for a well.

Use this dataset when the client provides production at monthly grain instead of daily grain, or when monthly delivery is the agreed source for operational simplicity.

2. Source object​

Read from the client share view that exposes WELL_PRODUCTION_VOLUMES_MONTHLY.

ComboCurve reads this data through the INBOUND_WELL_PRODUCTION_VOLUMES_MONTHLY_SV view in your tenant schema (tenant_<tenant>) in the ComboCurve Databricks workspace. ComboCurve builds that view over the Delta Share you provide, and it must expose the columns described in this document.

Each row represents the desired current state for one well and one production month.

3. Record identity​

Treat the following fields as the uniqueness key:

  • CHOSEN_ID
  • DATASOURCE
  • PROJECT_NAME
  • PRODUCTION_DATE

Uniqueness rule:

  • Only one monthly production record can exist for each (CHOSEN_ID, DATASOURCE, PROJECT_NAME, PRODUCTION_DATE) combination.

4. Required fields​

4.1 Identity​

  • CHOSEN_ID
  • DATASOURCE
  • PROJECT_NAME
  • PRODUCTION_DATE

4.2 Audit​

  • __RECORD_SOURCE
  • __UPDATED_AT
  • __SOFT_DELETE

4.3 Required column​

  • __CREATED_AT (the column must exist; its values are not validated)

PRODUCTION_DATE is required for every monthly production row.

5. Month convention​

Use one consistent convention for PRODUCTION_DATE in monthly data.

Recommended convention:

  • Set PRODUCTION_DATE to the 15th day of the production month.
  • For example, use 2025-01-15 for January 2025.

If the client uses a different convention, map it consistently, but do not mix conventions inside the same dataset. Mixing month-date conventions can create duplicate logical records.

6. Project scoping rule​

PROJECT_NAME follows the same scope rule as the other datasets:

  • Populate it for project wells.
  • Set it to NULL for company-level wells.

7. Audit field behavior​

7.1 __RECORD_SOURCE​

Use this field for lineage and source tracking.

7.2 __UPDATED_AT​

Use this field as the record-level watermark.

Requirements:

  • It must be present.
  • It must change whenever the monthly record changes.
  • ComboCurve applies rows in ascending __UPDATED_AT order, so the newest version of a record is applied last.

Because ComboCurve reads incrementally, a row is picked up only when its __UPDATED_AT is later than the last value ComboCurve processed. Rows that share the same timestamp are ordered by their business key. Rows with a NULL __UPDATED_AT, or a value earlier than that watermark, are not picked up after the first run.

7.3 __SOFT_DELETE​

Use this field to delete an existing monthly production row.

When __SOFT_DELETE = TRUE, ComboCurve should treat the monthly production record as deleted.

For deletes, the source should still provide:

  • CHOSEN_ID
  • DATASOURCE
  • PROJECT_NAME
  • PRODUCTION_DATE
  • __RECORD_SOURCE
  • __UPDATED_AT
  • __SOFT_DELETE

Other monthly measures can be omitted on delete rows.

8. Production measures​

Common monthly production fields include:

8.1 Production volumes​

  • OIL
  • GAS
  • WATER
  • NGL

8.2 Operational measures​

  • DAYS_ON
  • CHOKE
  • OPERATIONAL_TAG

8.3 Injection volumes​

  • WATER_INJECTION
  • GAS_INJECTION
  • CO2_INJECTION
  • STEAM_INJECTION

8.4 Custom client-defined measures​

The schema supports custom monthly streams through:

  • CUSTOM_NUMBER_0 through CUSTOM_NUMBER_19

Use these when the client needs to provide additional monthly metrics not covered by the standard columns.

9. Validation rules​

9.1 Required-field validation​

ComboCurve checks two things before it loads a monthly production row:

  • The view must contain these columns: CHOSEN_ID, DATASOURCE, PROJECT_NAME, PRODUCTION_DATE, __RECORD_SOURCE, __CREATED_AT, __UPDATED_AT, and __SOFT_DELETE. If any is missing, the run for this dataset fails. Other columns that are missing from the view are skipped.
  • Every row must have a non-empty CHOSEN_ID and DATASOURCE, and a non-empty PRODUCTION_DATE. ComboCurve skips a row that does not, and writes the failure to the data share error log. A delete row must also have a valid date. On an update row, a date that cannot be parsed is dropped without an error-log entry.

9.2 Month-date validation​

Require PRODUCTION_DATE to follow the single agreed convention for the monthly dataset. The recommended convention is the 15th day of the month.

9.3 Referential validation​

The (CHOSEN_ID, DATASOURCE, PROJECT_NAME) tuple should resolve to a valid well in the well header dataset. ComboCurve loads production after well headers in every run, so each well has its header before its production rows arrive. Rows that ComboCurve rejects are reported as load errors and do not affect other rows.

9.4 Delete validation​

Delete rows must include enough information to uniquely identify the production row:

  • CHOSEN_ID
  • DATASOURCE
  • PROJECT_NAME
  • PRODUCTION_DATE
  • __RECORD_SOURCE
  • __UPDATED_AT
  • __SOFT_DELETE

10. Operational notes​

  • Re-sending the same monthly row should be idempotent.
  • Use a single production-month date convention everywhere in the pipeline.
  • Do not allow mixed conventions such as first-of-month and mid-month for the same logical dataset.
  • Preserve raw-source lineage for reconciliation and troubleshooting.
  • Deleting a row from the view does not delete the record in ComboCurve. ComboCurve only sees changes, so mark the row with __SOFT_DELETE = TRUE instead.
  • Rows that fail validation are skipped and written to the data share error log (DATA_SHARE_ERROR_LOGS, exposed as DATA_SHARE_ERROR_LOGS_SV). ComboCurve does not read them again on its own. To resubmit a corrected row, change its __UPDATED_AT to a newer value. ComboCurve retries temporary platform errors.
  • PROJECT_NAME must exist as a column, but ComboCurve does not validate its values. A NULL or blank PROJECT_NAME loads the row for a company-level well.
  • Keep PRODUCTION_DATE a true date column. For an update, ComboCurve silently drops a row whose PRODUCTION_DATE is a non-empty value that it cannot parse as a date, and it writes no error-log entry for it.
  • If a previous run is still active for the same source, the next scheduled run is skipped. The skipped run is not an error, and the next run picks up the changes.