数据组信息
Datagroups 可让您指定查询缓存政策和触发器,以便重新构建 PDT。如果您有权访问“管理”菜单的数据库部分中的数据组页面,则会看到一个数据模型的摘要,这些模型在它们拥有数据访问权限的模型中定义。
Datagroups 页面提供了每个数据组的以下信息:
根据数据组的状态,名称下方也可能会显示以下详细信息:
- 状态显示数据组的当前状态。在数据组的每行旁边,彩色状态也表示该状态:
- 绿色 - 数据组处于就绪状态。
- 橙色 - 数据组处于触发状态,或者数据组最近部署到了生产环境,并且触发器检查周期尚未开始。
- 红色 - 最近的触发器检查有误,或者数据组的 LookML 发生错误。您可以点击 LookML 按钮以打开 LookML 模型文件。
- 点击 LookML 按钮,打开定义数据组的 LookML 模型文件。
- 从齿轮菜单中选择重置缓存,可立即使使用该数据组的所有探索的缓存结果无效。
- 从齿轮菜单中选择触发数据组,使所有探索的缓存结果无效,并使用该数据组重建所有 PDT。PDT 重新构建将基于连接在“PDT 和数据组维护时间表”字段中的下一次指定(例如每五分钟)开始。使用数据组作为触发器的 Looks、信息中心和 LookML 信息中心的所有已排定数据交付都将在被触发的数据组达到就绪状态时发送。
<li><strong>Trigger value</strong> shows the result of the <code>sql_trigger</code> query that triggered the datagroup. In the example above, the SQL trigger for the <code>orders_datagroup</code> is based on the maximum ETL log ID. The <strong>Trigger value</strong> shows the new ETL log ID that triggered the datagroup: <strong>284183</strong>.</li>
<li><strong>Triggered since</strong> is displayed for datagroups in the triggered state to show how long it has been since the datagroup was triggered. This provides information on how long it is taking to rebuild PDTs and run the queries that triggered by the datagroup. Once all PDTs are rebuilt, the datagroup's color will update to green to indicate that the datagroup is ready, and after several minutes the <strong>Triggered since</strong> information will disappear from the page since the datagroup is complete.</li>
<li><strong>Trigger error</strong> provides error information for the datagroup triggers. In the example above, the <code>user_information</code> datagroup has a syntax error in its SQL trigger. When you see an error like this, you can click the <strong>LookML</strong> button to open the LookML model file and correct the SQL syntax.</li>
<li><strong>Trigger last checked</strong> shows the last time that the datagroup's <code>sql_trigger</code> SQL query was run. If the value returned by the query is different next time, that triggers the datagroup.</li>
<li><strong>Cache reset at</strong> shows the time when the cache was last reset (when the cached data in the datagroup was last invalidated).</li>
</ul>
数据组操作
根据您的权限,您可以在数据组“管理”页面对数据组执行以下操作: