Skip to content

Commit

Permalink
Remove changes in estimated width of the target table
Browse files Browse the repository at this point in the history
  • Loading branch information
gabbasb committed Dec 18, 2017
1 parent 5b806f9 commit 65b28ae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions hdfs_fdw.c
Expand Up @@ -308,8 +308,6 @@ hdfsGetForeignRelSize(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntableid
}

baserel->rows = 1000;
fpinfo->width = 1000;
baserel->reltarget->width = fpinfo->width;

/* Get the actual number of rows from server
* if use_remote_estimate is specified in options.
Expand All @@ -326,9 +324,6 @@ hdfsGetForeignRelSize(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntableid
}
fpinfo->rows = baserel->tuples = baserel->rows;

fpinfo->width = 1000;
baserel->reltarget->width = fpinfo->width;

if (IS_DEBUG)
ereport(LOG, (errmsg("hdfs_fdw: hdfsGetForeignRelSize ends [%f]", baserel->rows)));
}
Expand Down

0 comments on commit 65b28ae

Please sign in to comment.