yahoo/maha

[Feature] Dim Only Query: Schema required filter validation in request

Opened this issue · 0 comments

Right now, request model is not validating the schema required filters for Dim Only Query.
The code block to validate the schema required filters is only applied when we have fact best candidate defined. Adding this missing feature.

  • If you are querying dim only data then you need to have the schema required fields as filter.

  • If you are querying top level dim like ads or ad assets and then it will search all the related dimensions and create flatmap of schema required fields and assert on it. (Had to do this because, In some case we specify schema required fields only in the Lower level dim)

  • Also asserting that Schema required filter can only have In Or = filter to pass criteria, so that no request can run NOT IN filter on Advertiser ID and get all data.

  • Exposing common methods in the registry.