Skip to main content

Forecast wells ingestion reference

Forecast wells ingestion reference​

Use this document when you ingest the FORECASTS_WELLS data into ComboCurve.

1. Purpose​

FORECASTS_WELLS links wells to forecasts. Each row adds one well to one forecast.

2. Source object​

ComboCurve reads this data through the INBOUND_FORECASTS_WELLS_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 one forecast and well pair. ComboCurve loads forecast wells after forecasts and well headers.

3. Record identity​

Treat the following fields as the business key:

  • PROJECT_NAME
  • NAME
  • CHOSEN_ID
  • DATASOURCE

Uniqueness rule:

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

4. Required fields​

4.1 Identity​

  • PROJECT_NAME
  • NAME
  • CHOSEN_ID
  • DATASOURCE

4.2 Audit​

  • __RECORD_SOURCE
  • __CREATED_AT
  • __UPDATED_AT
  • __SOFT_DELETE

NAME is the forecast name. CHOSEN_ID and DATASOURCE identify the well.

5. Audit field behavior​

5.1 __RECORD_SOURCE​

Use this field for lineage and source tracking. The column must exist. ComboCurve does not validate its values.

5.2 __CREATED_AT​

The column must exist. ComboCurve does not validate its values.

5.3 __UPDATED_AT​

Use this field as the record-level change watermark.

Requirements:

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

5.4 __SOFT_DELETE​

Use this field to delete an existing record. When __SOFT_DELETE = TRUE, ComboCurve deletes the record. Delete rows must still provide the identity fields in section 3.

6. Optional fields​

None. This is a link dataset.

7. Load behavior​

  • Validation: ComboCurve skips a row that is missing a required value and writes the failure to the data share error log (DATA_SHARE_ERROR_LOGS, exposed as DATA_SHARE_ERROR_LOGS_SV). It keeps at most five sample rows for each rule in each batch.
  • Rejected rows: Rows that ComboCurve rejects are reported as load errors. For this dataset, other rows in the same request are not affected.
  • No automatic re-read: ComboCurve does not read a rejected row again on its own. To resubmit a corrected row, change its __UPDATED_AT to a newer value. ComboCurve retries temporary platform errors.
  • Missing view: If the view does not exist, ComboCurve skips this dataset and continues with the others.
  • Missing required column: If the view lacks a required column, the run for this dataset fails.
  • Dependencies: ComboCurve loads datasets in a fixed order and waits for each dependency to finish. If a dependency fails, the datasets that depend on it fail too. A dependency that is skipped because its view is missing does not block the datasets that depend on it.
  • The well must already be in the forecast project: A company-level well cannot be added to a forecast. Load the well header into the same project first. A row for a well that is not in the forecast project is rejected.
  • Existing links are reported as errors: If a well is already linked to the forecast, ComboCurve reports that row as an error and does not skip it silently. Other rows in the same load are not affected.

8. Operational notes​

  • 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.
  • If a previous run is still active for the same source, the next scheduled run is skipped. The skipped run is not an error.
  • Preserve raw-source lineage for reconciliation and troubleshooting.
  • A soft delete removes the link between the forecast and the well.