Rambo2292468
IS-IT--Management
Problem: MSTR warehouse did not pick up the correct datatype when the backend view update. In the backend view, production_start_date and production_end_date shows varchar 21; however, they are varchar 42 in the view in warehouse.
Here is the backend view:
V_Workcenter_itm
Production_Start_date VARCHAR[21]
Production_Start_date VARCHAR[21]
Queiried_Item_WorkCenter CHAR[10]
Queiried_Item_Identifier CHRA[21]
Queiried_Item_Version_Code CHAR[2]
Pln_Cd CHAR[10]
Here is the backend view definition:
REPLACE VIEW BOM.v_workcenter_itm AS
SELECT DISTINCT
(pln_strt_dt (format 'yyyy-mm-dd')(char(10))) || ' ' || (pln_strt_dt(format 'hh:mi:ss')(char(8))) production_start_date,
(pln_eff_end_dt (format 'yyyy-mm-dd')(char(10))) || ' ' || (pln_eff_end_dt(format 'hh:mi:ss')(char(8))) production_end_date,
p1.wrk_cntr_cd queried_item_workcenter,
p1.mtrl_id queried_item_identifier,
p1.mtrl_rvs_cd queried_item_revision_code,
p2.pln_cd
FROM
bom_drv.v_wrk_cntr_mtrl p1
JOIN
bom_drv.v_pln p2 ON p1.wrk_cntr_cd = p2.wrk_cntr_cd;
Here is the view in warehouse catalog:
Here is the backend view:
V_Workcenter_itm
Queiried_Item_WorkCenter CHAR[10]
Pln_Cd CHAR[10]
Queiried_Item_Identifier CHRA[21]
Queiried_Item_Version_Code CHAR[2]
Production_Start_date VARCHAR[42]
Production_Start_date VARCHAR[42]
What I have done: Removed completely all objects related to this view. Also removed this view from “tables being used in the project” and I still see incorrect datatype in the “tables available in the warehouse”.
Note: The warehouse updated for other columns fine except these columns. This means that we point to correct database environment.
I am also aware of one MSTR tech note about the samying that Varchar in warehouse double the size of data type.
My fear is does it have any impact ?
Any ideas?
Thanks in Advance !
Here is the backend view:
V_Workcenter_itm
Production_Start_date VARCHAR[21]
Production_Start_date VARCHAR[21]
Queiried_Item_WorkCenter CHAR[10]
Queiried_Item_Identifier CHRA[21]
Queiried_Item_Version_Code CHAR[2]
Pln_Cd CHAR[10]
Here is the backend view definition:
REPLACE VIEW BOM.v_workcenter_itm AS
SELECT DISTINCT
(pln_strt_dt (format 'yyyy-mm-dd')(char(10))) || ' ' || (pln_strt_dt(format 'hh:mi:ss')(char(8))) production_start_date,
(pln_eff_end_dt (format 'yyyy-mm-dd')(char(10))) || ' ' || (pln_eff_end_dt(format 'hh:mi:ss')(char(8))) production_end_date,
p1.wrk_cntr_cd queried_item_workcenter,
p1.mtrl_id queried_item_identifier,
p1.mtrl_rvs_cd queried_item_revision_code,
p2.pln_cd
FROM
bom_drv.v_wrk_cntr_mtrl p1
JOIN
bom_drv.v_pln p2 ON p1.wrk_cntr_cd = p2.wrk_cntr_cd;
Here is the view in warehouse catalog:
Here is the backend view:
V_Workcenter_itm
Queiried_Item_WorkCenter CHAR[10]
Pln_Cd CHAR[10]
Queiried_Item_Identifier CHRA[21]
Queiried_Item_Version_Code CHAR[2]
Production_Start_date VARCHAR[42]
Production_Start_date VARCHAR[42]
What I have done: Removed completely all objects related to this view. Also removed this view from “tables being used in the project” and I still see incorrect datatype in the “tables available in the warehouse”.
Note: The warehouse updated for other columns fine except these columns. This means that we point to correct database environment.
I am also aware of one MSTR tech note about the samying that Varchar in warehouse double the size of data type.
My fear is does it have any impact ?
Any ideas?
Thanks in Advance !