File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
adminforth/dataConnectors Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,10 @@ class ClickhouseConnector extends AdminForthBaseConnector implements IAdminForth
207
207
const column = resource . dataSourceColumns . find ( ( col ) => col . name == field ) ;
208
208
let placeholder = `{f$?:${ column . _underlineType } }` ;
209
209
let operator = this . OperatorsMap [ filter . operator ] ;
210
+ if ( ( filter . operator == AdminForthFilterOperators . LIKE || filter . operator == AdminForthFilterOperators . ILIKE ) && column . _underlineType == 'UUID' ) {
211
+ placeholder = '{f$?:String}' ;
212
+ field = `toString(${ field } )` ;
213
+ }
210
214
if ( filter . operator == AdminForthFilterOperators . IN || filter . operator == AdminForthFilterOperators . NIN ) {
211
215
placeholder = `(${ filter . value . map ( ( _ , j ) => `{p$?:${ column . _underlineType } }` ) . join ( ', ' ) } )` ;
212
216
} else if ( filter . operator == AdminForthFilterOperators . EQ && filter . value === null ) {
You can’t perform that action at this time.
0 commit comments