You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When filtering on a custom field (via expression), the driver uses the human-readable field name instead of the correct alias.
SELECT
source.warennummerKN8 AS warennummerKN8,
source.`sum-where` AS `sum-where`,
source.`sum-where_2` AS `sum-where_2`
FROM
(
SELECT
rsianalytics.customs_atlasaes.warennummerKN8 AS warennummerKN8,
sum(multiIf((rsianalytics.customs_atlasaes.statistik_datum >= parseDateTimeBestEffort('2018-12-31 23:00:00')) AND (rsianalytics.customs_atlasaes.statistik_datum <= parseDateTimeBestEffort('2019-06-29 22:00:00')), rsianalytics.customs_atlasaes.anzahlPositionen, 0.)) AS `sum-where`,
sum(multiIf((rsianalytics.customs_atlasaes.statistik_datum >= parseDateTimeBestEffort('2019-12-31 23:00:00')) AND (rsianalytics.customs_atlasaes.statistik_datum <= parseDateTimeBestEffort('2020-06-29 22:00:00')), rsianalytics.customs_atlasaes.anzahlPositionen, 0.)) AS `sum-where_2`
FROM rsianalytics.customs_atlasaes
GROUP BY rsianalytics.customs_atlasaes.warennummerKN8
ORDER BY rsianalytics.customs_atlasaes.warennummerKN8 ASC
) AS source
WHERE source.`Positionen 2019` > 0
LIMIT 2000
FORMAT TabSeparatedWithNamesAndTypes
Received exception from server (version 20.4.5):
Code: 47. DB::Exception: Received from cdb1.dev.riege.de:9000. DB::Exception: There's no column 'source.Positionen 2019' in table 'source'.
See how it's using source.Positionen 2019 instead of sum_where (or sum_where_2).
When filtering on a custom field (via expression), the driver uses the human-readable field name instead of the correct alias.
See how it's using source.Positionen 2019 instead of sum_where (or sum_where_2).
This is how I reproduce this on our development database, trying to follow the steps in the Metabase blog post on Time Series Comparison
The MBQL query from the log:
The text was updated successfully, but these errors were encountered: