hyongtao-db opened a new pull request, #793: URL: https://github.com/apache/cloudberry/pull/793
Long log: In pg12.12, there is no function `InitCopyFromDispatchSplit()`, so attr_count must be > 0. But in GP7, we may get `[NULL]`in QE when all fields are processed in the QD. So the condition checking should change from `attr_count > 0` to `attr_count >= 0`. But before it, `attr_count = list_length(attnumlist);`, we can ensure that `attr_count >= 0` consistently, so delete this bug-related condition `attr_count > 0`. Due to code refactoring in PG-14, the related code is moved from `copy.c` to `copyfrom.c`, so modify the related code in `copyfrom.c`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
