Forecasts ingestion reference
Forecasts ingestion reference
Use this document when you ingest the FORECASTS data into ComboCurve.
1. Purpose
FORECASTS lists forecast headers. ComboCurve creates or updates each forecast in its project.
This dataset loads the forecast header only. It does not load decline parameters or volumes. Loading forecast parameters and forecast volumes through the In-Reader is not available yet.
2. Source object
ComboCurve reads this data through the INBOUND_FORECASTS_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 the desired current state of one forecast. ComboCurve loads forecasts after projects.
3. Record identity
Treat the following fields as the business key:
PROJECT_NAMENAME
Uniqueness rule:
- Only one record can exist for each (
PROJECT_NAME,NAME) combination.
4. Required fields
4.1 Identity
PROJECT_NAMENAME
4.2 Audit
__RECORD_SOURCE__CREATED_AT__UPDATED_AT__SOFT_DELETE
PROJECT_NAME must match a project that already exists or that the same run loads. ComboCurve expects a forecast name to be unique within a project.
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_ATorder, 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
These columns are optional. ComboCurve sets only the columns that a row carries, so leaving a column out of the view never clears an existing value.
TYPEFORECASTEDIMPORTEDDIAG_DATERUN_DATECOPIED_FROM_IDSTREAM_ASSIGNMENT_ID
TYPE must be probabilistic or deterministic. If the view also carries PROJECT_ID, ComboCurve uses it in preference to PROJECT_NAME, and rejects the row when the ID is invalid. Leave PROJECT_ID out unless it is a valid ComboCurve project ID.
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 asDATA_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_ATto 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.
- Upsert: ComboCurve creates the forecast when it does not exist and updates it when it does.
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 = TRUEinstead. - 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.
- The forecast owner is the data share user that ComboCurve configures for your tenant, not the
USER_IDin the view.