Type curve fit segments
Type curve fit segments
1. Integration overview
Dataset Name: Type Curve Fit Segments
Shared View: TYPE_CURVE_FIT_SEGMENTS_V2_SV
Delivery Mechanism: Databricks view via Delta Sharing
Update Pattern: Continuous Update
Export Trigger: None — this dataset is delivered continuously, not on export.
2. Business context (Oil & Gas Reservoir Engineering)
This dataset lists the decline segments of each type curve fit: one row per fit, series, and segment. The segment parameters (Q_START, D_VALUE, B_VALUE, K_VALUE, REALIZED_D_EFF_SW) describe the decline in the same way as the Type Curve 2.0 External API.
This dataset covers Type Curve 2.0. Type Curve 1.0 is retired, its Databricks views are being removed, and this page does not document them.
3. Dataset characteristics
What this dataset is
- Entity grain: One record per fit, series, and segment (latest version).
- Measures: Segment type, dates, and decline parameters.
- Enrichment: Adds
FIT_TYPE,BASE_PHASE,TYPE_CURVE_NAME, andPROJECT_NAME.
Mutable, near real-time dataset
This dataset is mutable: records may be inserted, updated, or soft-deleted after their initial arrival.
Updates are delivered to Databricks continuously. When a change is made in ComboCurve, the corresponding change is typically reflected in Databricks within ~1–3 minutes.
Soft deletes
When a record is deleted in the source system, the dataset reflects that through the __SOFT_DELETE flag. The shared view does not remove those rows. Filter __SOFT_DELETE = FALSE unless you explicitly want to track deletions.
4. Expected record uniqueness
- Technical uniqueness (as exposed by the shared view):
FIT_ID+SERIES+SEGMENT_INDEX - Business identity (recommended for client reporting):
PROJECT_NAME+TYPE_CURVE_NAME+PHASE+SERIES+SEGMENT_INDEX. Names are not enforced to be unique, so join on the technical key.
5. Client access pattern
Query the shared view directly:
- Primary access object:
TYPE_CURVE_FIT_SEGMENTS_V2_SV - Typical filters:
__SOFT_DELETE = FALSESERIES(P10, P50, P90, or best)PHASE(oil, gas, or water)
- Common joins:
- Join to
TYPE_CURVE_FITS_V2_SVonFIT_ID = TYPE_CURVE_FITS_V2_SV.ID. - Join to
TYPE_CURVES_V2_SVonTYPE_CURVE_ID = TYPE_CURVES_V2_SV.ID.
- Join to
Example:
SELECT TYPE_CURVE_NAME, PHASE, SERIES, SEGMENT_INDEX, SEGMENT_NAME, Q_START, D_VALUE, B_VALUE
FROM <shared_catalog>.<shared_schema>.TYPE_CURVE_FIT_SEGMENTS_V2_SV
WHERE __SOFT_DELETE = FALSE
AND PROJECT_NAME = '<project_name>'
ORDER BY TYPE_CURVE_NAME, PHASE, SERIES, SEGMENT_INDEX;
6. Full schema definition (client-facing shared view)
The following schema reflects the client-facing shared view (TYPE_CURVE_FIT_SEGMENTS_V2_SV). Columns are organized into data categories for easier discovery.
6.1 Segment identity
| Column | Data Type | Description |
|---|---|---|
| FIT_ID | STRING | Reference to the related type curve fit (TYPE_CURVE_FITS_V2.ID) |
| SERIES | STRING | Fit series the segment belongs to (P10, P50, P90 or best) |
| SEGMENT_INDEX | BIGINT | Position of the segment within its series, from 0 |
| TYPE_CURVE_ID | STRING | Reference to the related type curve |
| TYPE_CURVE_NAME | STRING | Name of the related type curve. |
| PROJECT_ID | STRING | Reference to the related project |
| PROJECT_NAME | STRING | Name of the related project. |
| PHASE | STRING | Phase of the fit (oil, gas or water) |
| FIT_TYPE | STRING | Fit type of the parent fit (rate or ratio). |
| BASE_PHASE | STRING | Base phase of the parent fit when it is a ratio fit. |
6.2 Segment type and range
| Column | Data Type | Description |
|---|---|---|
| SEGMENT_NAME | STRING | Segment type (arps, arps_inc, arps_modified, exp_dec, exp_inc, linear, flat or empty) |
| START_DATE | DATE | Segment start as a date: 1900-01-01 plus start_index days, as the External API shows type curve segments |
| END_DATE | DATE | Segment end as a date: 1900-01-01 plus end_index days |
| START_INDEX | BIGINT | Segment start, in days from the type curve's time zero |
| END_INDEX | BIGINT | Segment end, in days from the type curve's time zero |
6.3 Decline parameters
| Column | Data Type | Description |
|---|---|---|
| Q_START | DOUBLE | Rate per day at the start of the segment; on a ratio fit, the ratio to the base phase |
| D_VALUE | DOUBLE | Nominal decline per day (D) of arps, arps_inc, arps_modified, exp_dec and exp_inc segments; negative for increasing segments |
| B_VALUE | DOUBLE | Arps b factor of arps, arps_inc and arps_modified segments |
| K_VALUE | DOUBLE | Slope of a linear segment: the change in rate per day |
| REALIZED_D_EFF_SW | DOUBLE | Realized effective decline at which an arps_modified segment switches to exponential |
6.4 Record metadata and integration
| Column | Data Type | Description |
|---|---|---|
| __RECORD_SOURCE | STRING | Origin of the data. |
| __CREATED_AT | TIMESTAMP_NTZ | Timestamp when the record was created in the integration. |
| __UPDATED_AT | TIMESTAMP_NTZ | Timestamp when the record was last updated in the integration. |
| __SOFT_DELETE | BOOLEAN | Integration soft-delete flag. TRUE means the record was deleted in ComboCurve. |
7. Incremental consumption best practices
Pull only new or changed records
For scheduled ingestion, pull records where __UPDATED_AT is greater than your last successful ingestion watermark. Optionally include a small lookback window to capture late updates. Keep soft-deleted rows in the pull so that you can apply the deletes downstream.
SELECT * FROM TYPE_CURVE_FIT_SEGMENTS_V2_SV
WHERE __UPDATED_AT > '<last_watermark>';
Deduplicate by the shared-view key
Treat FIT_ID + SERIES + SEGMENT_INDEX as the record key and upsert accordingly. The shared view always resolves to the latest version for that key, based on COALESCE(__UPDATED_AT, __CREATED_AT).
8. Operational notes
- Latest-row logic: The shared view returns the most recent record for each key, ordered by
COALESCE(__UPDATED_AT, __CREATED_AT). - Late revisions: Records can change after their first appearance. Use incremental pulls driven by
__UPDATED_ATand consider a small backfill window. - Empty parameters: A parameter applies only to some segment types, so the others are
NULL. For example,K_VALUEapplies only tolinearsegments. - Ratio fits: On a ratio fit,
Q_STARTis the ratio to the base phase and not a rate.