How to use the druid-query-toolkit/build/ast/sql-query/helpers.refExpressionFactory function in druid-query-toolkit

To help you get started, we’ve selected a few druid-query-toolkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / druid / web-console / src / views / query-view / column-tree / column-tree-menu / time-menu-items / time-menu-items.tsx View on Github external
onClick={() => {
            const additiveExpression = new AdditiveExpression({
              parens: [],
              op: ['-'],
              ex: [refExpressionFactory('CURRENT_TIMESTAMP'), intervalFactory('DAY', '1')],
              spacing: [' ', ' '],
            });
            onQueryChange(
              parsedQuery.removeFilter(columnName).filterRow(columnName, additiveExpression, '>='),
              true,
            );
          }}
        />