dbms: OLAP compatibility: multiple categories [#CONV-8848].

This commit is contained in:
Alexey Milovidov 2013-10-11 00:27:28 +00:00
parent 2b1cacd0f0
commit a997258e26

View File

@ -403,13 +403,13 @@ void QueryConverter::fillNumericAttributeMap()
M("RegionCity", "regionToCity(RegionID)")
M("RegionArea", "regionToArea(RegionID)")
M("RegionCountry", "regionToCountry(RegionID)")
M("URLRegionID", "URLRegionID")
M("URLRegionCity", "regionToCity(URLRegionID)")
M("URLRegionArea", "regionToArea(URLRegionID)")
M("URLRegionCountry", "regionToCountry(URLRegionID)")
M("URLCategoryID", "URLCategoryID")
M("URLCategoryMostAncestor", "categoryToRoot(URLCategoryID)")
M("URLCategorySecondLevel", "categoryToSecondLevel(URLCategoryID)")
M("URLRegionID", "URLRegions[0]")
M("URLRegionCity", "regionToCity(URLRegions[0])")
M("URLRegionArea", "regionToArea(URLRegions[0])")
M("URLRegionCountry", "regionToCountry(URLRegions[0])")
M("URLCategoryID", "URLCategories[0]")
M("URLCategoryMostAncestor", "categoryToRoot(URLCategories[0])")
M("URLCategorySecondLevel", "categoryToSecondLevel(URLCategories[0])")
M("TraficSourceID", "TraficSourceID")
M("IsNewUser", "FirstVisit == StartTime")
M("UserNewness", "intDiv(toUInt64(StartTime)-toUInt64(FirstVisit), 86400)")