Mapping Working Group Instructions: Metadb version 1.4 mappings for data array extraction | Mike | This will be a working group meeting where Mike Gorrell, LDP/Metadb Project Director at Index Data, will walk us through the process of preparing mappings for data array extraction for the upcoming release of Metadb 1.4 software Deployed in 2 environments (CU Boulder and Lehigh) Testing to be conducted over the next few weeks: Add Mappings to correspond to some of the derived tables (See example below). Run queries using those new mappings. Add Mappings of more complex extractions (thank you for some test cases to use I will publish the list we have later this week). Run queries using those new mappings ReSync to measure impact of CREATE MAPPING - First or second week of December
Working group being formed to create the mapping over the next several weeks. Close to collecting daily statistics on Derived Table usage
Update on new FOLIO Reporting Environment
Example of a Mapping created from a derived table creation script. From the po_lines_cost.sql script: jsonb_extract_path_text(pol.jsonb, 'cost', 'listUnitPrice')::numeric(19,4) AS po_line_list_unit_price_phys,
jsonb_extract_path_text(pol.jsonb, 'cost', 'quantityPhysical') AS po_line_quant_phys,
jsonb_extract_path_text(pol.jsonb, 'cost', 'listUnitPriceElectronic')::numeric(19,4) AS po_line_list_unit_price_elec,
jsonb_extract_path_text(pol.jsonb, 'cost', 'quantityElectronic') AS po_line_quant_elec,
jsonb_extract_path_text(pol.jsonb, 'cost', 'additionalCost')::numeric(19,4) AS po_line_additional_cost,
jsonb_extract_path_text(pol.jsonb, 'cost', 'currency') AS po_line_currency,
jsonb_extract_path_text(pol.jsonb, 'cost', 'discount')::numeric(19,4) AS po_line_discount,
jsonb_extract_path_text(pol.jsonb, 'cost', 'discountType') AS po_line_discount_type,
jsonb_extract_path_text(pol.jsonb, 'cost', 'poLineEstimatedPrice')::numeric(19,4) AS po_line_estimated_price TO this in the Mapping file CREATE DATA MAPPING FOR json FROM TABLE folio_orders.po_line__ COLUMN jsonb PATH '$.cost' TO 'cost';
note that there is no way to limit the fields extracted, or to rename the columns as part of this feature.
NOTE LDP Software retirement is May 1, 2025 |