diff --git a/dbms/src/Server/OLAPQueryConverter.cpp b/dbms/src/Server/OLAPQueryConverter.cpp index 149b71a8692..3e7a428b6dc 100644 --- a/dbms/src/Server/OLAPQueryConverter.cpp +++ b/dbms/src/Server/OLAPQueryConverter.cpp @@ -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)")