Release 80

DataMart views changed since 01-Oct-2025.

Executive summary

  • Introduced three new meta-code views and one person/skills view.
  • Corrected customer PRU→Company mapping and widened a busopp value field.
  • Standardised source table identification (removed trailing “$” in table names) and aliasing.
  • Adopted a consistent CTE top-and-tail query pattern to support get.myview in on-demand mode.
  • Multiple views updated for “de-dollar” and alias clean-ups.

New views

  • project_meta_codes_pmn — Transforms Project Manager Narrative (PMN) records.
    File: project_meta_codes_pmn.sqlInitial DataMart view
  • employee_meta_codes_skillsbase — Employee skillsbase meta-codes.
    File: employee_meta_codes_skillsbase.sqlInitial DataMart view
  • person_meta_codes_skillsbase — Provides a view of skillsbase person records based on an API export.
    File: person_meta_codes_skillsbase.sqlInitial DataMart view
  • dates_mydate — Converted from CREATE VIEW to a static query for portability.
    File: dates_mydate.sqlParameters in header removed

Renamed / globalised

  • company_item → global_company_item
    Files: company_item.sql, global_company_item.sqlRenamed with “global” suffix
  • program_item → global_program_item
    File: program_item.sqlRenamed with “global” suffix

Downstream dependencies:

  • Update any references to company_item and program_item to use global_company_item and global_program_item.

Corrections

  • customer_details_APC — Reconciles Company ID using supplied PRU Code name:
    When PRU name is ‘Maritime Engineering (Infrastructure) – SI’ then Company = ‘3037’.
    File: customer_details_APC.sqlMessage: “Maritime Engineering 3037”
  • busopp_value — Increased field capacity by changing DECIMAL(15,3) representation to VARCHAR(16) to avoid overflow/truncation.
    File: busopp_value.sqlMessage: “VARCHAR(16)”

Improvements to source identification & aliasing

Purpose: Ensure tables are identified using their non-dollar names for lineage and metadata consistency.

Change pattern:
'{"Source":"ifs.[QFACT_BMT_DWH_INVOICE_TAB_IAS$]"}' as SOURCE_SYSTEM

'{"Source":"ifs.[QFACT_BMT_DWH_INVOICE_TAB_IAS]"}' as SOURCE_SYSTEM

Views updated:

  • global_program_item.sqlimprove alias
  • project_item_202404.sqlimprove alias
  • employee_core_details_archive.sqlde-dollar
  • invoice_core_details.sqlde-dollar
  • invoice_meta_dates.sqlde-dollar
  • order_core_details.sqlde-dollar
  • order_core_details_archive.sqlde-dollar
  • order_item_values.sqlde-dollar
  • order_meta_codes.sqlde-dollar
  • order_meta_codes_archive.sqlde-dollar
  • order_meta_dates.sqlde-dollar

Global query structure change (Beta & 202409 queries)

Adopted a consistent CTE wrapper to enable get.myview to interact with queries in on-demand mode and to improve efficiency/accuracy:

WITH __myview AS (
  SELECT
    -- ...
)
SELECT * FROM __myview;

File change log (complete list)

FileMessage
project_meta_codes_pmn.sqlInitial DataMart view
employee_meta_codes_skillsbase.sqlInitial DataMart view
person_meta_codes_skillsbase.sqlInitial DataMart view
customer_details_APC.sqlMaritime Engineering 3037
global_program_item.sqlimprove alias
project_item_202404.sqlimprove alias
employee_core_details_archive.sqlde-dollar
invoice_core_details.sqlde-dollar
invoice_meta_dates.sqlde-dollar
order_core_details.sqlde-dollar
order_core_details_archive.sqlde-dollar
order_item_values.sqlde-dollar
order_meta_codes.sqlde-dollar
order_meta_codes_archive.sqlde-dollar
order_meta_dates.sqlde-dollar
dates_mydate.sqlparameters in header (removed)
company_item.sqlrename global
global_company_item.sqlrename global
program_item.sqlrename global
busopp_value.sqlVARCHAR(16)

Leave a Comment