How to use the druid-query-toolkit.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 / string-menu-items / string-menu-items.tsx View on Github external
onClick={() => {
            onQueryChange(
              parsedQuery.addAggregateColumn(
                refExpressionFactory('*'),
                'COUNT',
                aliasFactory(`${columnName}_filtered_count`),
                false,
                new FilterClause({
                  keyword: 'FILTER',
                  spacing: [' '],
                  ex: new WhereClause({
                    keyword: 'WHERE',
                    spacing: [' '],
                    filter: new ComparisonExpression({
                      parens: [],
                      ex: stringFactory(columnName, '"'),
                      rhs: new ComparisonExpressionRhs({
                        parens: [],
                        op: '=',
                        rhs: stringFactory('xxx', `'`),