原 gpload加载数据报错 UnboundLocalError: local variable 'has_seq_bool' referenced before assignment
Tags: 原创故障处理GreenPlumPythongpload
现象
gpload7客户端加载GP7数据库,加载报错:UnboundLocalError: local variable 'has_seq_bool' referenced before assignment
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | [root@ptdb3 /tmp]# more inp_adt.log 2024-07-17 13:06:13|INFO|gpload session started 2024-07-17 13:06:13 2024-07-17 13:06:13|WARN|ERROR_TABLE is not supported. We will set LOG_ERRORS and REUSE_TABLES to True for compatibility. Traceback (most recent call last): File "/usr/local/greenplum-db-7.1.0/bin/gpload.py", line 3010, in run self.run2() File "/usr/local/greenplum-db-7.1.0/bin/gpload.py", line 2990, in run2 self.read_table_metadata() File "/usr/local/greenplum-db-7.1.0/bin/gpload.py", line 1914, in read_table_metadata i = [name,ct,None, has_seq_bool] UnboundLocalError: local variable 'has_seq_bool' referenced before assignment 2024-07-17 13:06:13|LOG|terminating all threads 2024-07-17 13:06:13|LOG|all threads are terminated 2024-07-17 13:06:13|INFO|rows Inserted = 0 2024-07-17 13:06:13|INFO|rows Updated = 0 2024-07-17 13:06:13|INFO|data formatting errors = 0 2024-07-17 13:06:13|INFO|gpload failed |