如果事实表/视图是模板(仅包含表结构但不包含数据)怎么办?
我注意到多维数据集中使用的事实表实际上是视图。 事实上,它们是事实表的模板(我在脚本中注意到“其中 1=2”用于事实视图)。
因此,如果使用模板,则视图中不会有任何数据(并且我不知道是否可以在视图中插入,因为我在视图中没有插入权限)。
所以,我的问题是:我是否遗漏了立方体中的一些东西可以看? 因为这个立方体是由一位非常有经验的开发人员设计的,而我只是一个 QA。 立方体设计窗格清楚地显示它正在使用模板(如 DSV 设计器中每个矩形对象的黄色标题中所示)。它是否可以引用任何其他表/视图而不是标题中显示的内容?
I noticed that the fact tables used in a cube were actually views. Infact they were the templates of the fact tables (i noticed it in the script that "where 1=2" was used for the fact-views).
So, if the template is used, there wont be any data in the view at any cost (and i dont know if I can insert in the view becasue I dont have insert privilege in the view).
So, my question is: Am I missing something in the cube to look at? because the cube is designed by a very experienced dev and I am just a QA. The cube designing pane shows clearly that it s using the template (as it shows in the yellow header of each rectangular shaped object in DSV designer. Can it be referenced to any other table/view as opposed to what is being shown in the header?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不完全确定为什么这是 CW,但无论如何,你不会错过任何东西。 事实表可以是一个视图(事实上,我在测试中经常这样做)。
您缺少的是无法插入视图,因为它是只读的(以下称为“视图”)。 您正在查看其他表中的 SELECT 语句。 由于它是抽象的,因此您无法将数据插入到视图中——视图仅反映其源表中的数据。
Not entirely sure why this is a CW, but regardless, you're not missing anything. The fact table can be a view (and in fact, I do this a lot with testing).
What you are missing is that you cannot insert into a view because it's read-only (henceforth, "view"). You're looking at a SELECT statement from other table(s). Since it's abstracted, there's no way that you can insert data into the view--the view only reflects data in its source tables.
这可能是维护多对多关系的情况,开发人员可能使用事实表来匹配 2 个不同维度的主键
It may be a case for maintaining a many - many relationships developer might have used the fact table to match primary keys of 2 diff dimensions