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
I'm attempting to use the code snippet below however my alias directives are not being honoured for the middle two SELECT clauses (Q2 and Q3) while the are being specified for Q1 and Q4 (which are simple less than or greater than comparisons). The function returns without error so it's failing silently. Am I specifying something incorrectly? I also tried with Criterion.all([]) with the same result. Python 3.9.0 and PyPika 0.44.0
SELECT COUNT('1') `count`,`date`<'2020-04-01 00:00:00' Q1,`date`>='2020-04-01 00:00:00' AND `date`<'2020-07-01 00:00:00',`date`>='2020-07-01 00:00:00' AND `date`<'2020-10-01 00:00:00',`date`>='2020-10-01 00:00:00' Q4 FROM `metrics` WHERE `date`>='2020-01-01 00:00:00' GROUP BY `Q1`,`Q2`,`Q3`,`Q4`
The text was updated successfully, but these errors were encountered:
I'm attempting to use the code snippet below however my alias directives are not being honoured for the middle two SELECT clauses (Q2 and Q3) while the are being specified for Q1 and Q4 (which are simple less than or greater than comparisons). The function returns without error so it's failing silently. Am I specifying something incorrectly? I also tried with Criterion.all([]) with the same result. Python 3.9.0 and PyPika 0.44.0
Output:
The text was updated successfully, but these errors were encountered: