-
Notifications
You must be signed in to change notification settings - Fork 7.3k
has function doesn't work corectly with Nullable strings #2115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Hello @alexey-milovidov , I'm trying to investigate this issue and I have a question: For the example I provided above what branch in FunctionArray it's expected to be executed starting from line 855: Currently the second one is executed, but I have a feeling that first one is the proper one and if (item_arg->onlyNull())
ArrayIndexStringNullImpl<IndexConv>::vector_const(col_nested->getChars(), col_array->getOffsets(),
col_nested->getOffsets(), col_res->getData(), null_map_data);
else if (const auto item_arg_const = checkAndGetColumnConstStringOrFixedString(item_arg))
ArrayIndexStringImpl<IndexConv>::vector_const(col_nested->getChars(), col_array->getOffsets(),
col_nested->getOffsets(), item_arg_const->getValue<String>(), col_res->getData(),
null_map_data);
else if (const auto item_arg_vector = checkAndGetColumn<ColumnString>(item_arg))
ArrayIndexStringImpl<IndexConv>::vector_vector(col_nested->getChars(), col_array->getOffsets(),
col_nested->getOffsets(), item_arg_vector->getChars(), item_arg_vector->getOffsets(),
col_res->getData(), null_map_data, null_map_item); I'm trying to realize if I'm on the good track with debugging Silviu |
@alexey-milovidov you consider this a valid bug ? |
Yes, it's a bug. I'll try to investigate. |
It's for the case when you write |
Ok, so problem is in another place. |
The code is just plain wrong (no magic). |
Fix is in master. |
has
functions seems is not working correctly when we have an array of nullable strings:I saw that using
Array(Nullable(Uint8))
is working correctly . I didn't tested with more data types.The text was updated successfully, but these errors were encountered: