Merge pull request #828 from Algunenano/i827_timestamp

Timeseries: Avoid collisions with columns named 'timestamp'
This commit is contained in:
Simon Martín 2017-12-26 09:55:46 +01:00 committed by GitHub
commit 524d5a5597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ __wd_buckets AS
${ctx.query}
) __source, __wd_tz
${condition_str}
GROUP BY timestamp, __wd_tz.name
GROUP BY 1, __wd_tz.name
),`;
}

View File

@ -28,7 +28,7 @@ const binsQueryTpl = ctx => `
) AS quartile
FROM __cdb_filtered_source) _cdb_quartiles
WHERE quartile = 1 or quartile = 3
GROUP BY quartile
GROUP BY 1
) __cdb_iqr
),
__cdb_bins AS (
@ -137,8 +137,8 @@ FROM
(
${ctx.query}
) __cdb_filtered_source_query${extra_tables}
GROUP BY bin${extra_groupby}
ORDER BY bin;`;
GROUP BY 10${extra_groupby}
ORDER BY 10;`;
}
_hasOverridenBins (override) {