假设不知道过滤器列是否存在的情况。
t:([]a:`s1`s2`s3; c:1 2 3);
select c from t where null t[`a]
select c from t where null t[`b]
'length
(where null t[`a])~where null t[`b]
1b
它列a
存在,然后就可以了select
。
但是当我使用带有列的过滤器b
(不存在)时,我得到一个错误。
- 为什么会这样?- 我检查了两个
where
结果 - 它们是相同的 - 如何解决这种情况?