Small change to use const
This commit is contained in:
@@ -201,10 +201,9 @@ function _columnStats(ctx, columns) {
|
||||
);
|
||||
if (columns[name].type === 'string') {
|
||||
const topN = ctx.metaOptions.columnStats.topCategories || 1024;
|
||||
let includeNulls = true;
|
||||
if (ctx.metaOptions.columnStats.hasOwnProperty('includeNulls')) {
|
||||
includeNulls = ctx.metaOptions.columnStats.includeNulls;
|
||||
}
|
||||
const includeNulls = ctx.metaOptions.columnStats.hasOwnProperty('includeNulls') ?
|
||||
ctx.metaOptions.columnStats.includeNulls :
|
||||
true;
|
||||
|
||||
// TODO: ctx.metaOptions.columnStats.maxCategories
|
||||
// => use PG stats to dismiss columns with more distinct values
|
||||
|
||||
Reference in New Issue
Block a user