You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h5style="width: 800px;">To include a field in your tag, click on the checkbox next to the field and enter a query expression in the text box. <br>
<br>
The query expression must be a <i>valid</i> select statement in BigQuery. It may contain filter, aggregate functions, joins, groupings, subqueries, etc. as long as it's a valid select statement.<br>
<br>
The query expression may reference these variables:<br>
- <b>$table</b> refers to the BQ table (or view) being tagged<br>
- <b>$dataset</b> refers to the BQ dataset of the table (or view) being tagged<br>
- <b>$project</b> refers to the BQ project of the table (or view) being tagged<br>
<br>
Here are some examples: <br>
select count(*) from $table;<br>
select count(distinct(account_id)) from $table;<br>
select count(*) > 1 from $table where account_id is null;<br>
select rating from dw-project.quality.scores where table = '$table' and dataset = '$dataset' and project = '$project';<br>
select '30-DAYS';<br>
<br>
Note: The result of the query expression must satisfy the type requirements of the field in the tag template. <br>
For example, if the tag template field is of type string, the query expression must return a string type.
The text was updated successfully, but these errors were encountered:
When you create a Dynamic Tag, the documentation shows examples using variables such as $table, $dataset and $project.
The following examples exist:
As you can see, some examples use $table and another uses `$table`, but only the `$table` cases work.
datacatalog-tag-engine/templates/dynamic_table_config.html
Lines 19 to 38 in ee92750
The text was updated successfully, but these errors were encountered: