@malloydata/malloy-filter 0.0.421 → 0.0.423

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,6 +49,9 @@ export const NumberFilterExpression = {
49
49
  case 'null': {
50
50
  return nc.not ? 'not null' : 'null';
51
51
  }
52
+ case 'none': {
53
+ return nc.not ? 'not none' : 'none';
54
+ }
52
55
  case 'and':
53
56
  case 'or':
54
57
  return nc.members
@@ -70,6 +70,8 @@ export const StringFilterExpression = {
70
70
  return sc.not ? '-null' : 'null';
71
71
  case 'empty':
72
72
  return sc.not ? '-empty' : 'empty';
73
+ case 'none':
74
+ return sc.not ? '-none' : 'none';
73
75
  }
74
76
  },
75
77
  };
@@ -31,11 +31,16 @@ export const TemporalFilterExpression = {
31
31
  switch (tc.operator) {
32
32
  case 'null':
33
33
  return notStr(tc, 'null');
34
+ case 'none':
35
+ return notStr(tc, 'none');
34
36
  case 'in': {
35
37
  return notStr(tc, momentToStr(tc.in));
36
38
  }
37
39
  case '()':
38
- return '(' + TemporalFilterExpression.unparse(tc.expr) + ')';
40
+ return notStr(
41
+ tc,
42
+ '(' + TemporalFilterExpression.unparse(tc.expr) + ')'
43
+ );
39
44
  case 'in_last':
40
45
  return notStr(tc, durStr(tc));
41
46
  case 'last':