Skip to content

Commit

Permalink
MODFQMMGR-633:Stat code names doesnt appear to work correctly in cros…
Browse files Browse the repository at this point in the history
…s-tenant-queries
  • Loading branch information
kjain110 committed Jan 15, 2025
1 parent f03b2c1 commit f686ec9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@
idColumnName: 'statistical_code_ids',
queryable: true,
visibleByDefault: false,
valueGetter: "( SELECT array_agg(statcode.statistical_code) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
filterValueGetter: "( SELECT array_agg(lower(statcode.statistical_code)) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
valueGetter: "( SELECT array_agg(statcode.statistical_code) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN ${tenant_id}_mod_fqm_manager.drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
filterValueGetter: "( SELECT array_agg(lower(statcode.statistical_code)) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN ${tenant_id}_mod_fqm_manager.drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
valueFunction: 'lower(:value)',
source: {
entityTypeId: 'd2da8cc7-9171-4d3e-8aba-4da286eb5f1c',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1061,8 +1061,8 @@
idColumnName: 'statistical_code_ids',
queryable: true,
visibleByDefault: false,
valueGetter: "( SELECT array_agg(statcode.statistical_code) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
filterValueGetter: "( SELECT array_agg(lower(statcode.statistical_code)) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
valueGetter: "( SELECT array_agg(statcode.statistical_code) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN ${tenant_id}_mod_fqm_manager.drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
filterValueGetter: "( SELECT array_agg(lower(statcode.statistical_code)) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN ${tenant_id}_mod_fqm_manager.drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
source: {
entityTypeId: 'd2da8cc7-9171-4d3e-8aba-4da286eb5f1c',
columnName: 'statistical_code',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,8 @@
queryable: true,
visibleByDefault: false,
essential: true,
valueGetter: "( SELECT array_agg(statcode.statistical_code) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
filterValueGetter: "( SELECT array_agg(lower(statcode.statistical_code)) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
valueGetter: "( SELECT array_agg(statcode.statistical_code) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN ${tenant_id}_mod_fqm_manager.drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
filterValueGetter: "( SELECT array_agg(lower(statcode.statistical_code)) FROM jsonb_array_elements_text(:sourceAlias.jsonb -> 'statisticalCodeIds'::text) record(value) JOIN ${tenant_id}_mod_fqm_manager.drv_inventory_statistical_codes_full statcode ON record.value::text = statcode.id::text)",
source: {
entityTypeId: 'd2da8cc7-9171-4d3e-8aba-4da286eb5f1c',
columnName: 'statistical_code',
Expand Down

0 comments on commit f686ec9

Please sign in to comment.