cube-js/cube

Add ability to look at cube meta during queryRewrite

开放

#4,118 创建于 2022年2月17日

 (11 条评论) (13 个反应) (0 位负责人)Rust (1,965 个派生)batch import
configurationhelp wanted

仓库指标

星标
 (19,563 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Is your feature request related to a problem? Please describe. When setting up row-level permissions, I want to make sure that any query on a cube with a tenant id dimension is re-written to filter for that tenant ID

Describe the solution you'd like The queryRewrite function should be passed a parameter that lists out all cubes and allows to inspect the dimensions + measures on those cubes

Describe alternatives you've considered The alternative is maintaining a list of cubes manually. This gets tedious especially when extending cubes.

贡献者指南