feat(FILE_ARCHIVER): Update package version to 3.4.2 and enhance archival query consistency with JOIN to A_SOURCE_FILE_RECEIVED
This commit is contained in:
@@ -168,6 +168,9 @@ AS
|
||||
, to_char(h.workflow_start,''mm'')
|
||||
)
|
||||
from '||vTableName||' s
|
||||
join CT_MRDS.A_SOURCE_FILE_RECEIVED r
|
||||
on s.file$name = r.source_file_name
|
||||
and r.a_source_file_config_key = '||pSourceFileConfigKey||'
|
||||
join CT_MRDS.a_workflow_history h
|
||||
on s.a_workflow_history_key = h.a_workflow_history_key
|
||||
where ' || GET_ARCHIVAL_WHERE_CLAUSE(vSourceFileConfig) || '
|
||||
@@ -176,7 +179,7 @@ AS
|
||||
;
|
||||
|
||||
-- Get all files that will be archived into "vfiles" collection ("regular data files")
|
||||
-- MARS-1468: Handle ORA-29913/ORA-12801 - no files in ODS bucket (empty external table location)
|
||||
-- MARS-1409: Handle ORA-29913/ORA-12801 - no files in ODS bucket (empty external table location)
|
||||
-- ORA-29913 may come directly or wrapped in ORA-12801 (parallel query) with KUP-05002 root cause
|
||||
BEGIN
|
||||
execute immediate vQuery bulk collect into vfiles;
|
||||
@@ -556,7 +559,7 @@ AS
|
||||
on t.filename = r.object_name'
|
||||
;
|
||||
CT_MRDS.ENV_MANAGER.LOG_PROCESS_EVENT('vQuery:', 'DEBUG', vQuery);
|
||||
-- MARS-1468: Handle ORA-29913/ORA-12801 - no files in ODS bucket (empty external table location)
|
||||
-- MARS-1409: Handle ORA-29913/ORA-12801 - no files in ODS bucket (empty external table location)
|
||||
-- ORA-29913 may come directly or wrapped in ORA-12801 (parallel query) with KUP-05002 root cause
|
||||
BEGIN
|
||||
execute immediate vQuery into vStats;
|
||||
|
||||
@@ -17,12 +17,14 @@ AS
|
||||
**/
|
||||
|
||||
-- Package Version Information (Semantic Versioning: MAJOR.MINOR.PATCH)
|
||||
PACKAGE_VERSION CONSTANT VARCHAR2(10) := '3.4.0';
|
||||
PACKAGE_BUILD_DATE CONSTANT VARCHAR2(20) := '2026-03-17 11:00:00';
|
||||
PACKAGE_VERSION CONSTANT VARCHAR2(10) := '3.4.2';
|
||||
PACKAGE_BUILD_DATE CONSTANT VARCHAR2(20) := '2026-03-24 14:00:00';
|
||||
PACKAGE_AUTHOR CONSTANT VARCHAR2(100) := 'Grzegorz Michalski';
|
||||
|
||||
-- Version History (Latest changes first)
|
||||
VERSION_HISTORY CONSTANT VARCHAR2(4000) :=
|
||||
'3.4.2 (2026-03-24): MARS-1409 - Fixed archival query asymmetry: added JOIN to A_SOURCE_FILE_RECEIVED in vfiles (loop) query to match EXPORT_DATA query. Both queries now consistently require file registration in A_SOURCE_FILE_RECEIVED.' || CHR(13)||CHR(10) ||
|
||||
'3.4.1 (2026-03-24): MARS-1409 - Removed JOIN to A_SOURCE_FILE_RECEIVED from EXPORT_DATA query (reverted in 3.4.2).' || CHR(13)||CHR(10) ||
|
||||
'3.4.0 (2026-03-17): MARS-1409 - Added IS_WORKFLOW_SUCCESS_REQUIRED flag to A_SOURCE_FILE_CONFIG (DEFAULT Y). ' ||
|
||||
'Y=standard DBT flow (WORKFLOW_SUCCESSFUL=Y required), N=bypass for manual/non-DBT sources. ' ||
|
||||
'Flag value stored in A_TABLE_STAT and A_TABLE_STAT_HIST for full audit of statistics basis.' || CHR(13)||CHR(10) ||
|
||||
|
||||
Reference in New Issue
Block a user