[jOOQ/jOOQ#17056] Support comparing arrays in BigQuery

This commit is contained in:
Lukas Eder 2024-08-13 15:04:49 +02:00
parent 9b10360358
commit b60097822c
2 changed files with 6 additions and 1 deletions

View File

@ -124,7 +124,7 @@ implements
Field<T> arg2,
Function2<RowN, Select<?>, Condition> compareRowSubquery,
Function2<RowN, RowN, Condition> compareRowRow,
Function3<? super Context<?>, ? super Field<T>, ? super Field<T>, ? extends Context<?>> acceptDefault
Function3<? super Context<?>, ? super Field<?>, ? super Field<?>, ? extends Context<?>> acceptDefault
) {
boolean field1Embeddable = arg1.getDataType().isEmbeddable();
SelectQueryImpl<?> s;
@ -154,6 +154,10 @@ implements
else if (arg1 instanceof Array && ((Array<?>) arg1).fields.fields.length == 0)
ctx.data(ExtendedDataKey.DATA_EMPTY_ARRAY_BASE_TYPE, arg2.getDataType().getArrayComponentDataType(), c -> acceptDefault.apply(c, arg1, arg2));
else if (arg2 instanceof Array && ((Array<?>) arg2).fields.fields.length == 0)

View File

@ -301,6 +301,7 @@ final class Names {
static final Name N_toJSONString = systemName("toJSONString");
static final Name N_TO_CLOB = systemName("to_clob");
static final Name N_TO_JSON = systemName("to_json");
static final Name N_TO_JSON_STRING = systemName("to_json_string");
static final Name N_TO_NUMBER = systemName("to_number");
static final Name N_TO_VARIANT = systemName("to_variant");
static final Name N_TRUNCATE = systemName("truncate");