mirror of
https://github.com/getredash/redash.git
synced 2026-05-08 09:01:12 -04:00
Fix: mixed number columns was wrongly detected as integer
This commit is contained in:
@@ -15,11 +15,7 @@
|
||||
_.each(this.query_result.data.rows, function (row) {
|
||||
_.each(row, function (v, k) {
|
||||
if (angular.isNumber(v)) {
|
||||
if (parseInt(v) === v) {
|
||||
columnTypes[k] = 'integer';
|
||||
} else {
|
||||
columnTypes[k] = 'float';
|
||||
}
|
||||
columnTypes[k] = 'float';
|
||||
} else if (_.isString(v) && v.match(/^\d{4}-\d{2}-\d{2}T/)) {
|
||||
row[k] = moment(v);
|
||||
columnTypes[k] = 'datetime';
|
||||
|
||||
Reference in New Issue
Block a user