Github user hsyuan commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/845#discussion_r76368378
  
    --- Diff: src/backend/cdb/cdbdatalocality.c ---
    @@ -3822,8 +3837,13 @@ run_allocation_algorithm(SplitAllocResult *result, 
List *virtual_segments, Query
                uint64_t before_run_allocate_hash_or_random = 
gettime_microsec();
                /*allocate hash relation*/
                if (isRelationHash) {
    -                   if (context->keep_hash && 
assignment_context.virtual_segment_num
    -                                           == targetPolicy->bucketnum) {
    +             /*
    +              * if file count of the table is not equal to or multiple of
    +              * bucket number, we should process it as random table.
    +              */
    +                   if (context->keep_hash
    +                       && assignment_context.virtual_segment_num== 
targetPolicy->bucketnum
    --- End diff --
    
    space before ==


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to