From 4c8c3654c486f06d9e715b72d259ddbc26cbefcb Mon Sep 17 00:00:00 2001 From: floptical Date: Tue, 30 Jul 2024 13:41:17 +0000 Subject: [PATCH] fix --- databridge_etl_tools/db2/db2.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/databridge_etl_tools/db2/db2.py b/databridge_etl_tools/db2/db2.py index 35a0529..6b674ce 100644 --- a/databridge_etl_tools/db2/db2.py +++ b/databridge_etl_tools/db2/db2.py @@ -514,18 +514,15 @@ def copy_to_enterprise(self): enterprise_columns.remove(oid_column) # Actually make a copy of the list and not just a pointer. staging_columns = list(enterprise_columns) - staging_columns.append(oid_column) - staging_columns_str = ', '.join(staging_columns) - enterprise_columns.append(f"sde.next_rowid('{self.enterprise_schema}','{self.enterprise_dataset_name}')") - enterprise_columns_str = ', '.join(enterprise_columns) else: - staging_columns = ', '.join(enterprise_columns) - enterprise_columns_str = ', '.join(enterprise_columns) + staging_columns = enterprise_columns else: - staging_columns = ', '.join(enterprise_columns) - enterprise_columns_str = ', '.join(enterprise_columns) + staging_columns = enterprise_columns + + staging_columns_str = ', '.join(staging_columns) + enterprise_columns_str = ', '.join(enterprise_columns) self.logger.info('') self.logger.info('enterprise_columns: ' + str(enterprise_columns_str))