Github user huor commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/1384#discussion_r208434912
--- Diff: src/backend/cdb/cdbdatalocality.c ---
@@ -4104,6 +4468,12 @@ calculate_planner_segment_num(Query *query,
QueryResourceLife resourceLife,
/* get block location and calculate relation size*/
get_block_locations_and_claculte_table_size(&context);
+ if(context.chsl_context.relations){
+ Relation_Data* tmp = (Relation_Data*)
lfirst(context.chsl_context.relations->tail);
+ // result->hivehost = (tmp->hostname) ?
pstrdup(tmp->hostname):(char*)NULL;
--- End diff --
Remove
---