[英]How to include values dynamically in BigQuery Scheduled Queries Error Message?
I managed to schedule a big query query that tests for equality between two tables (one at the granularity of a linen sheet level, while other is a daily roll up of linen sheet counts).我设法安排了一个大查询来测试两个表之间的相等性(一个在亚麻床单级别的粒度,而另一个是亚麻床单计数的每日汇总)。
However, i fail to include the actual value of the variance as the ERROR() argument only expects strings;但是,我没有包含方差的实际值,因为 ERROR() 参数只需要字符串; is there a way to say ERROR('Absolute Variance is {value x} - {value y} = {z} sheets')?
有没有办法说错误('绝对方差是{value x} - {value y} = {z} sheets')?
CASE WHEN
ABS( (sheet_counts.pass - daily_scan.approved_pieces )) >= 1 THEN
ERROR('Absolute Variance between sheet level and day level counts is greater than 0 for yesterday, Dori - please investigate data flow job to ensure no job failed, Thank you !')
ELSE 'pass' END AS sheet_daily_match,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.