cube-js/cube

Support for ts_query on postgressql

Open

#3,225 opened on Aug 11, 2021

View on GitHub
 (2 comments) (4 reactions) (0 assignees)Rust (19,563 stars) (1,965 forks)batch import
driver:postgreshelp wanted

Description

Is your feature request related to a problem? Please describe. The list of available filters does not include postgresql full text search.

Describe the solution you'd like Add a filter option called tsQuery to BaseFilter.js:

tsQueryWhere(column) { return ${column} @@ to_tsquery(${this.firstParameter()}); }

add the option to operators in query.js const operators = [ 'equals', 'notEquals', 'contains', 'notContains', 'in', 'notIn', 'gt', 'gte', 'lt', 'lte', 'tsQuery', 'set', 'notSet', 'inDateRange', 'notInDateRange', 'onTheDate', 'beforeDate', 'afterDate', 'measureFilter', ];

Contributor guide