Open kingo55 opened 4 years ago
@kingo55
I think this is fine. It should be minimal impact for us as well because the table references won't change around often.
With the example you gave, how would we adopt it for our use case (multi-tenanted DWH)?
@dapperdrop - we can create a multi-tenanted exposures table, like we currently do. Where it has the following columns:
client_id, subject, wave_id, recipe, exposure_time
And derive views from that, like:
(SELECT subject, wave_id, recipe, exposure_time FROM all_exposures WHERE client_id = 'client')
I think we can make reports more customisable by changing the way we reference tables in our knits / Mojito.
Currently tables are referenced based on the client ID and subject types defined in
wave_params
. This makes for a tidywave_params
object:This yields tables like so:
mojito.exposures_usercookie
mojito.segments_usercookie
mojito.client_conversions_usercookie
There are some issues with this though:
(SELECT domain_userid as subject, 'conversion' as goal, 10.00 as revenue, derived_tstamp as conversion_time FROM client.events WHERE event_name = 'custom_schema')
).Whilst slightly uglier, I think we can make Mojito easier-to-adopt through customisable table references, like so:
Thoughts @dapperdrop ?