mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
dbms/Server, programs/███████████, ███████████: added CorrectedTraficSourceID, CorrectedSerachEngineID [#CONV-7968].
This commit is contained in:
parent
fc7a15a01d
commit
3216072492
@ -204,6 +204,9 @@ typedef AttributeUIntBase RegionCity;
|
|||||||
typedef AttributeUIntBase RegionArea;
|
typedef AttributeUIntBase RegionArea;
|
||||||
typedef AttributeUIntBase RegionCountry;
|
typedef AttributeUIntBase RegionCountry;
|
||||||
typedef AttributeIntBase TraficSourceID;
|
typedef AttributeIntBase TraficSourceID;
|
||||||
|
typedef AttributeIntBase CorrectedTraficSourceID;
|
||||||
|
typedef AttributeUIntBase CorrectedSearchEngineID;
|
||||||
|
|
||||||
typedef AttributeUIntBase IsNewUser;
|
typedef AttributeUIntBase IsNewUser;
|
||||||
typedef AttributeUIntBase UserNewness;
|
typedef AttributeUIntBase UserNewness;
|
||||||
|
|
||||||
@ -799,6 +802,8 @@ inline AttributeMetadatas GetOLAPAttributeMetadata()
|
|||||||
("URLRegionCity", new URLRegionCity)
|
("URLRegionCity", new URLRegionCity)
|
||||||
("URLRegionArea", new URLRegionArea)
|
("URLRegionArea", new URLRegionArea)
|
||||||
("URLRegionCountry", new URLRegionCountry)
|
("URLRegionCountry", new URLRegionCountry)
|
||||||
|
("CorrectedTraficSourceID", new CorrectedTraficSourceID)
|
||||||
|
("CorrectedSearchEngineID", new CorrectedSearchEngineID)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,6 +547,10 @@ void QueryConverter::fillNumericAttributeMap()
|
|||||||
M("CLID", "CLID")
|
M("CLID", "CLID")
|
||||||
|
|
||||||
M("SocialSourceNetworkID","SocialSourceNetworkID")
|
M("SocialSourceNetworkID","SocialSourceNetworkID")
|
||||||
|
/// где 26 это Яндекс (db_dumps/SearchEngines).
|
||||||
|
M("CorrectedTraficSourceID", "(IsYandex AND SEIn(toUInt8(SearchEngineID), 26)) ? -1 : TraficSourceID")
|
||||||
|
M("CorrectedSearchEngineID", "(IsYandex AND SEIn(toUInt8(SearchEngineID), 26)) ? 0 : toUInt8(SearchEngineID)")
|
||||||
|
|
||||||
#undef M
|
#undef M
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user