Skip to content

Commit

Permalink
Fixed: Auto-sensing failure with inconsistant data
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurah committed Mar 11, 2020
1 parent 441f089 commit 45bf05a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/splunk-wdc.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@
Object.keys(res[0]).forEach(function (key) {
log('Key : ' + key + ', Value : ' + res[0][key]);

/*
// Commented due to RegEx failing for inconsistant data.
if ( res[0][key].match(/^-?\d+$/) ) {
// Integer column definition (int)
Expand Down Expand Up @@ -264,7 +266,13 @@
alias: key,
dataType: tableau.dataTypeEnum.string
});
}
}*/
// All data is String - column definition - User can change the datatype in Tableau.
cols.push({
id: key,
alias: key,
dataType: tableau.dataTypeEnum.string
});
}); // End foreach key


Expand Down

0 comments on commit 45bf05a

Please sign in to comment.