Skip to main content

Type curve wells ingestion reference

Type curve wells ingestion reference​

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

1. Purpose​

TYPE_CURVES_V2_WELLS links wells to Type Curve 2.0 headers and marks wells that are excluded from the fit.

2. Source object​

ComboCurve reads this data through the INBOUND_TYPE_CURVES_V2_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 type curve and well pair. ComboCurve loads type curve wells after type curves, well headers, and forecast wells.

3. Record identity​

Treat the following fields as the business key:

  • PROJECT_NAME
  • TYPE_CURVE_NAME
  • CHOSEN_ID
  • DATASOURCE

Uniqueness rule:

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

4. Required fields​

4.1 Identity​

  • PROJECT_NAME
  • TYPE_CURVE_NAME
  • CHOSEN_ID
  • DATASOURCE

4.2 Audit​

  • __RECORD_SOURCE
  • __CREATED_AT
  • __UPDATED_AT
  • __SOFT_DELETE

TYPE_CURVE_NAME is the type curve 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​

This column is optional:

  • IS_EXCLUDED

IS_EXCLUDED marks the well as excluded from the type curve fit. It applies to all phases. A row with no value is treated as FALSE, so it removes an existing exclusion. Send IS_EXCLUDED explicitly on every row.

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 type curve needs a forecast: If the type curve has no forecast, ComboCurve rejects every well row for it.
  • Wells must be in the forecast: Each well must belong to the type curve forecast. ComboCurve loads forecast wells first for this reason. Facilities and well collections are rejected.
  • Ambiguous wells: If a CHOSEN_ID and DATASOURCE match both a project well and a company well, ComboCurve rejects the row, unless the well is already on the type curve or in its forecast.

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.