(Context<?> ctx)
| 125 | } |
| 126 | |
| 127 | @Override |
| 128 | public final void accept(Context<?> ctx) { |
| 129 | switch (ctx.family()) { |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | case H2: |
| 140 | case HSQLDB: |
| 141 | case POSTGRES: |
| 142 | case YUGABYTEDB: |
| 143 | ctx.visit(arrayTransform(ctx, array, predicate.$arg1(), predicate.$arg1(), predicate.$result()).asField()); |
| 144 | break; |
| 145 | |
| 146 | |
| 147 | case DUCKDB: |
| 148 | ctx.visit(function(N_ARRAY_FILTER, getDataType(), array, DSL.field("{0}", OTHER, predicate))); |
| 149 | break; |
| 150 | |
| 151 | case CLICKHOUSE: |
| 152 | ctx.visit(DSL.function(N_arrayFilter, getDataType(), DSL.field("{0}", OTHER, predicate), array)); |
| 153 | break; |
| 154 | |
| 155 | |
| 156 | case TRINO: |
| 157 | ctx.visit(function(N_FILTER, getDataType(), array, DSL.field("{0}", OTHER, predicate))); |
| 158 | break; |
| 159 | |
| 160 | default: |
| 161 | ctx.visit(function(N_ARRAY_FILTER, getDataType(), array, DSL.field("{0}", OTHER, predicate))); |
| 162 | break; |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | |
| 167 |
nothing calls this directly
no test coverage detected