Skip to main content

Type curve normalization segments

Type curve normalization segments​


1. Integration overview​

Dataset Name: Type Curve Normalization Segments Shared View: TYPE_CURVE_NORMALIZATION_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 fit segments of each normalization factor: one row per normalization, phase, factor, and segment. A segment fits the factor (eur or peak) over a range of the x axis.

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 normalization, phase, factor, and segment (latest version).
  • Measures: Segment start on the x axis, fit type, and fit coefficients A_VALUE and B_VALUE.
  • Enrichment: Adds X_AXIS, Y_AXIS, TYPE_CURVE_NAME, and PROJECT_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): NORMALIZATION_ID + PHASE + FACTOR + SEGMENT_INDEX
  • Business identity (recommended for client reporting): PROJECT_NAME + TYPE_CURVE_NAME + PHASE + FACTOR + 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_NORMALIZATION_SEGMENTS_V2_SV
  • Typical filters:
    • __SOFT_DELETE = FALSE
    • FACTOR (eur or peak)
  • Common joins:
    • Join to TYPE_CURVE_NORMALIZATIONS_V2_SV on NORMALIZATION_ID and PHASE.
    • Join to TYPE_CURVES_V2_SV on TYPE_CURVE_ID = TYPE_CURVES_V2_SV.ID.

Example:

SELECT TYPE_CURVE_NAME, PHASE, FACTOR, SEGMENT_INDEX, X_START, FIT_TYPE, A_VALUE, B_VALUE
FROM <shared_catalog>.<shared_schema>.TYPE_CURVE_NORMALIZATION_SEGMENTS_V2_SV
WHERE __SOFT_DELETE = FALSE
AND PROJECT_NAME = '<project_name>'
ORDER BY TYPE_CURVE_NAME, PHASE, FACTOR, SEGMENT_INDEX;

6. Full schema definition (client-facing shared view)​

The following schema reflects the client-facing shared view (TYPE_CURVE_NORMALIZATION_SEGMENTS_V2_SV). Columns are organized into data categories for easier discovery.

6.1 Segment identity​

ColumnData TypeDescription
NORMALIZATION_IDSTRINGReference to the type curve normalization; one per type curve
PHASESTRINGPhase the normalization applies to (oil, gas or water)
FACTORSTRINGNormalization factor the segment fits (eur or peak)
SEGMENT_INDEXBIGINTPosition of the segment within its factor, from 0
TYPE_CURVE_IDSTRINGReference to the related type curve
TYPE_CURVE_NAMESTRINGName of the related type curve.
PROJECT_IDSTRINGReference to the related project
PROJECT_NAMESTRINGName of the related project.
X_AXISSTRINGWell header or custom basis the normalization is plotted against.
Y_AXISSTRINGWhat the normalization normalizes: eur, peak, eur_and_peak, or eur_per_pll.

6.2 Segment fit​

ColumnData TypeDescription
X_STARTDOUBLEStart of the segment on the x axis; it ends where the next segment starts
FIT_TYPESTRINGFit of the segment (power_law_fit, linear or 1_to_1)
A_VALUEDOUBLEFit coefficient a
B_VALUEDOUBLEFit coefficient b

6.3 Record metadata and integration​

ColumnData TypeDescription
__RECORD_SOURCESTRINGOrigin of the data.
__CREATED_ATTIMESTAMP_NTZTimestamp when the record was created in the integration.
__UPDATED_ATTIMESTAMP_NTZTimestamp when the record was last updated in the integration.
__SOFT_DELETEBOOLEANIntegration 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_NORMALIZATION_SEGMENTS_V2_SV
WHERE __UPDATED_AT > '<last_watermark>';

Deduplicate by the shared-view key​

Treat NORMALIZATION_ID + PHASE + FACTOR + 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_AT and consider a small backfill window.
  • Segment range: A segment starts at X_START and ends where the next segment of the same factor starts.