Fix CTAS with gp_use_legacy_hashops GUC
When gp_use_legacy_hashops GUC was set, CTAS would not assign the legacy hash class operator to the new table. This is because CTAS goes through a different code path and uses the first operator class of the SELECT's result when no distribution key is provided. Backported from GPDB master 9040f296. There was one conflict: the cdbhash_int4_ops operator class oid is different between 6X and master (10196 in master vs. 10166 in 6X).
Showing
想要评论请 注册 或 登录