Skip to main content

Daily production ingestion reference

Daily production ingestion reference​

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

1. Purpose​

WELL_PRODUCTION_VOLUMES_DAILY stores daily production volumes and operational measurements for a well.

This dataset supports daily-level production ingestion when the client provides detail at the calendar-day grain.

2. Source object​

Read from the client share view that exposes WELL_PRODUCTION_VOLUMES_DAILY.

ComboCurve reads this data through the INBOUND_WELL_PRODUCTION_VOLUMES_DAILY_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 on one production date.

3. Record identity​

Treat the following fields as the uniqueness key:

  • CHOSEN_ID
  • DATASOURCE
  • PROJECT_NAME
  • PRODUCTION_DATE

Uniqueness rule:

  • Only one daily 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 daily production row.

5. Project scoping rule​

PROJECT_NAME follows the same rule as well headers:

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

6. Audit field behavior​

6.1 __RECORD_SOURCE​

Use this field for lineage and source tracking.

6.2 __UPDATED_AT​

Use this field as the record-level change watermark.

Requirements:

  • It must be present.
  • It must change whenever the daily 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.

6.3 __SOFT_DELETE​

Use this field to delete an existing production row.

When __SOFT_DELETE = TRUE, ComboCurve should treat the daily 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 production metrics can be omitted on delete rows.

7. Production measures​

Common daily production fields include:

7.1 Production volumes​

  • OIL
  • GAS
  • WATER
  • NGL

7.2 Injection volumes​

  • WATER_INJECTION
  • GAS_INJECTION
  • CO2_INJECTION
  • STEAM_INJECTION

7.3 Pressure and operating measurements​

  • BOTTOM_HOLE_PRESSURE
  • CASING_HEAD_PRESSURE
  • FLOWLINE_PRESSURE
  • GAS_LIFT_INJECTION_PRESSURE
  • TUBING_HEAD_PRESSURE
  • VESSEL_SEPARATOR_PRESSURE
  • CHOKE
  • HOURS_ON
  • OPERATIONAL_TAG

7.4 Custom client-defined measures​

The schema supports custom daily streams through:

  • CUSTOM_NUMBER_0 through CUSTOM_NUMBER_19

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

8. Validation rules​

8.1 Required-field validation​

ComboCurve checks two things before it loads a daily 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.

8.2 Date-grain validation​

PRODUCTION_DATE must resolve to a valid calendar date. For this dataset, the expected grain is one row per day.

8.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.

8.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

9. Operational notes​

  • Re-sending the same daily row should be safe and should not create duplicates.
  • Unless a narrower contract is explicitly agreed, expect each row to represent the full current state for that well-day.
  • Use the same business key structure as WELL_HEADERS, with PRODUCTION_DATE added for daily grain.
  • Preserve raw values for lineage 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.