Do not modify a cached plan statement during ExecuteTruncate.
User defined functions cache their plan, therefore if we modify the plan during execution, we risk having invalid data during the next execution of the cached plan. ExecuteTruncate modifies the plan's relations when declaring partitions that need truncation. Instead, we copy the list of relations that need truncation and add the partition relations to the copy. (cherry picked from commit e3cf4f26)
Showing
想要评论请 注册 或 登录