Skip to main content

Forecast parameters

Forecast parameters​


1. Integration overview​

Dataset Name: Forecast Parameters
Shared View: FORECAST_PARAMETERS_SV
Delivery Mechanism: Databricks view via Delta Sharing
Update Pattern: Immutable / Append-Only
Export Trigger:

  • User-triggered from ComboCurve UI
  • Triggered via ComboCurve Export v2

2. Business context (Oil & Gas Reservoir Engineering)​

The Forecast Parameters dataset contains the full decline curve parameterization used to generate production forecasts for oil and gas wells.

This data represents:

  • Decline curve model configuration (Arps Hyperbolic → Exponential)
  • Type curve application logic
  • Risk adjustments
  • Phase-level forecasting (Oil / Gas / Water / Custom Stream)
  • Estimated Ultimate Recovery (EUR)
  • Forecast segment definitions

4. Expected record uniqueness​

The dataset is append-only and may contain multiple exports of the same forecast.

Each row is one segment of one forecast curve. The row key is:

(FORECAST_EXPORT_ID, FORECAST_ID, WELL_ID, PHASE, SERIES, SEGMENT)

Each export batch is identified by FORECAST_EXPORT_ID. The key is unique for rows that have a FORECAST_EXPORT_ID. Rows written by older exports have a NULL FORECAST_EXPORT_ID and can repeat.


5. Client access pattern​

Query the shared view directly:

  • Primary access object: FORECAST_PARAMETERS_SV
  • Typical filters: FORECAST_EXPORT_ID, FORECAST_ID, WELL_ID, FORECASTED_ON, PHASE

Example:

SELECT *
FROM <shared_catalog>.<shared_schema>.FORECAST_PARAMETERS_SV;

Recommended filters:

  • FORECAST_EXPORT_ID
  • FORECAST_ID
  • WELL_ID
  • FORECASTED_ON
  • PHASE

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

Below is the schema for FORECAST_PARAMETERS_SV, grouped into data categories for easier consumption.

6.1 Forecast & project metadata​

ColumnData TypeDescription
PROJECT_NAMESTRINGHuman-readable project name
PROJECT_IDSTRINGComboCurve project identifier
FORECAST_NAMESTRINGForecast case name
FORECAST_IDSTRINGUnique forecast case ID
FORECAST_EXPORT_IDSTRINGGUID of export job
STATUSSTRINGForecast approval status
SUB_TYPESTRINGForecast creation method
STREAM_SCOPESTRINGProject or company stream
FORECAST_GENERATEDSTRINGThe resolution of the data used to create the forecast.

6.2 Well identification​

ColumnData TypeDescription
WELL_NAMESTRINGWell name
WELL_IDSTRINGUnique well identifier
WELL_NUMBERSTRINGOperator-assigned well number

6.3 Production context​

ColumnData TypeDescription
LAST_PROD_DATE_DAILYDATELast daily production date
LAST_PROD_DATE_MONTHLYDATELast monthly production date

These define the production history cutoff for forecasting.

6.4 User attribution & governance​

ColumnData TypeDescription
FORECASTED_BYSTRINGUser who generated forecast
FORECASTED_BY_IDSTRINGUser identifier
FORECASTED_ONDATEDate forecast generated
REVIEWED_BYSTRINGReviewer name
REVIEWED_BY_IDSTRINGReviewer identifier
REVIEWED_ONDATEApproval change date

6.5 Phase & stream information​

Valid values for PHASE:

  • OIL
  • GAS
  • WATER
  • CUSTOM STREAM
ColumnData TypeDescription
PHASESTRINGStream phase
TYPESTRINGSegment type
BASE_PHASESTRINGBase phase for ratio segments
BASE_PHASE_SCOPESTRINGBase phase scope

6.6 Well life & recovery metrics​

ColumnData TypeDescription
WELL_LIFEDOUBLETotal forecast well life (years)
REMAINING_WELL_LIFE_FROM_TODAYDOUBLERemaining years from export date
MONTHLY_CUMDOUBLECumulative monthly forecast volume
DAILY_CUMDOUBLECumulative daily forecast volume
EURDOUBLEEstimated Ultimate Recovery
EUR_PER_FTDOUBLEEUR normalized by perforated lateral length

6.7 Type curve application​

ColumnData TypeDescription
APPLIED_TYPE_CURVESTRINGType curve name
APPLIED_TYPE_CURVE_IDSTRINGType curve identifier
APPLIED_NORMALIZATIONSTRINGNormalization flag
FPD_SOURCESTRINGFirst production date source
RISK_FACTORDOUBLEApplied risk factor

6.8 Forecast segment definition​

Forecasts may consist of multiple segments.

ColumnData TypeDescription
SERIESSTRINGForecast p-series
SEGMENTDOUBLESegment number
SEGMENT_TYPESTRINGSegment type
START_DATEDATESegment start date
END_DATEDATESegment end date
START_DAYDOUBLESegment start index
END_DAYDOUBLESegment end index
CUM_STARTDOUBLEThe starting cum for the cum segment.
CUM_ENDDOUBLEThe ending cum for the cum segment.
X_AXIS_TYPESTRINGThe type of the x-axis for the cum segment.
ADJUST_SEGMENTBOOLEANIndicates whether segment boundary adjustment was applied during export. Not present on every tenant; some older tenants expose EXPORT_DATE instead.

6.9 Decline curve parameters​

ColumnData TypeDescription
Q_STARTDOUBLEStarting production rate
Q_ENDDOUBLEEnding production rate
Q_FINALDOUBLEFinal rate
DI_EFF_SECDOUBLEEffective initial decline
DI_NOMINALDOUBLENominal decline
BDOUBLEHyperbolic b-factor

6.10 Hyperbolic → exponential transition​

ColumnData TypeDescription
REALIZED_D_SW_EFF_SECDOUBLETransition effective decline
SW_DATEDATESwitch date
SW_IDX_ARPSDOUBLESwitch index
D_EXPDOUBLEExponential decline rate
Q_SWDOUBLERate at transition

6.11 Warnings & system metadata​

ColumnData TypeDescription
WARNINGSTRINGForecast warnings
__RECORDSOURCESTRINGSystem that generated record
__CREATED_ATTIMESTAMP_NTZUTC export timestamp
__UPDATED_ATTIMESTAMP_NTZLast modification timestamp

6.12 UI label mapping​

Unlike the economics and volume datasets, this dataset has no friendly-label layer: the forecast editor in the ComboCurve UI shows these same raw decline-curve / engineering parameter names, so there are essentially no "UI label vs column name" renames to map.

The values worth knowing are the ones whose meaning is not obvious from the name (DI_EFF_SEC = initial effective/secondary decline; B = hyperbolic b-factor; D_EXP = terminal exponential decline; REALIZED_D_SW_EFF_SEC = decline at the hyperbolic→exponential switch) — these are described in §6.9–6.10 above.

Casing caveat. The source field names are mixed-case — decline parameters such as Di_Eff_Sec, Di_nominal, D_exp, and the __RecordSource system column use camel/Pascal case in the underlying export. Databricks SQL treats column names as case-insensitive, so DI_EFF_SEC, Di_Eff_Sec, and di_eff_sec all select the same column. Write queries that do not depend on case, and do not assume the source casing when joining back to other systems.


7. Incremental consumption best practices​

Pull only new or changed records​

For scheduled ingestion, pull rows where __CREATED_AT is after your last run, or retrieve the latest export per forecast.

SELECT *
FROM FORECAST_PARAMETERS_SV
WHERE __CREATED_AT > DATEADD(day, -1, CURRENT_TIMESTAMP);

Retrieve latest export per forecast​

SELECT *
FROM FORECAST_PARAMETERS_SV
QUALIFY ROW_NUMBER() OVER (
PARTITION BY FORECAST_ID
ORDER BY __CREATED_AT DESC
) = 1;

Deduplicate by the shared-view key​

Treat (FORECAST_EXPORT_ID, FORECAST_ID, WELL_ID, PHASE, SERIES, SEGMENT) as the record key when loading into your target. Multiple exports of the same forecast are expected.


8. Operational notes​

  • Data is immutable once exported.
  • Multiple exports of the same forecast are expected.
  • No updates-in-place occur.
  • Historical parameter sets are preserved for auditability.