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
По нескольким запросам ответы отличаются от канонизированных.
1.
/*28*/SELECT key, AVG(length(Referer)) AS l, COUNT(*) AS c, MIN(Referer) FROM $data WHERE Referer <>''GROUP BY Url::CutWWW(Url::GetHost(Referer)) as key HAVINGCOUNT(*) >100000ORDER BY l DESCLIMIT25;
По моим представлениям значение поля l изменилось с переходом с String на Utf8. Канонизировать как есть? Сделать два варианта канонических результатов?
/*36*/SELECT URL, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND DontCountHits =0AND IsRefresh =0AND URL <>''GROUP BY URL ORDER BY PageViews DESCLIMIT10;
/*37*/SELECT Title, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND DontCountHits =0AND IsRefresh =0AND Title <>''GROUP BY Title ORDER BY PageViews DESCLIMIT10;
/*38*/SELECT URL, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND IsRefresh =0AND IsLink <>0AND IsDownload =0GROUP BY URL ORDER BY PageViews DESCLIMIT10 OFFSET 1000;
/*39*/SELECT TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND IsRefresh =0GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN (SearchEngineID =0AND AdvEngineID =0) THEN Referer ELSE '' END AS Src, URL AS Dst ORDER BY PageViews DESCLIMIT10 OFFSET 1000;
/*40*/SELECT URLHash, EventDate, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND IsRefresh =0AND TraficSourceID IN (-1, 6) AND RefererHash =3594120000172545465GROUP BY URLHash, EventDate ORDER BY PageViews DESCLIMIT10 OFFSET 100;
У этих запросов много одинаковых значений по полю PageViews из-за чего недетерменированно, какие именно попадут в окно и в каком порядке. Предлагаю добавить полей в сортировки и переканонизировать:
/*36*/SELECT URL, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND DontCountHits =0AND IsRefresh =0AND URL <>''GROUP BY URL ORDER BY PageViews, URL DESCLIMIT10;
/*37*/SELECT Title, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND DontCountHits =0AND IsRefresh =0AND Title <>''GROUP BY Title ORDER BY PageViews, Title DESCLIMIT10;
/*38*/SELECT URL, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND IsRefresh =0AND IsLink <>0AND IsDownload =0GROUP BY URL ORDER BY PageViews, URL DESCLIMIT10 OFFSET 1000;
/*39*/SELECT TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND IsRefresh =0GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN (SearchEngineID =0AND AdvEngineID =0) THEN Referer ELSE '' END AS Src, URL AS Dst ORDER BY PageViews, TraficSourceID DESCLIMIT10 OFFSET 1000;
/*40*/SELECT URLHash, EventDate, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-01') AND EventDate <=Date('2013-07-31') AND IsRefresh =0AND TraficSourceID IN (-1, 6) AND RefererHash =3594120000172545465GROUP BY URLHash, EventDate ORDER BY PageViews, URLHash DESCLIMIT10 OFFSET 100;
/*42*/SELECT Minute, COUNT(*) AS PageViews FROM $data WHERE CounterID =62AND EventDate >=Date('2013-07-14') AND EventDate <=Date('2013-07-15') AND IsRefresh =0AND DontCountHits =0GROUP BY DateTime::ToSeconds(EventTime)/60As Minute ORDER BY Minute LIMIT10 OFFSET 1000;
В канонических результатах Minute представлено в виде даты, хотя по документации должно быть числом (и приходит число и соответствует). Предлагаю поменять канонический результат.
The text was updated successfully, but these errors were encountered:
По нескольким запросам ответы отличаются от канонизированных.
1.
По моим представлениям значение поля
l
изменилось с переходом с String на Utf8. Канонизировать как есть? Сделать два варианта канонических результатов?У этих запросов много одинаковых значений по полю PageViews из-за чего недетерменированно, какие именно попадут в окно и в каком порядке. Предлагаю добавить полей в сортировки и переканонизировать:
В канонических результатах Minute представлено в виде даты, хотя по документации должно быть числом (и приходит число и соответствует). Предлагаю поменять канонический результат.
The text was updated successfully, but these errors were encountered: