-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
distsql: support ARRAY_AGG in distsql #15939
Comments
Part of this work we should also implement |
Given that we currently only support arrays for virtual schemas, is this currently affecting anything? Or is this a natural part of our work to support ARRAYs? |
We support arrays in select expressions (and there is |
@RaduBerinde could I have a try for this? And If you could give me some reference, I would appreciate it very much. |
@RaduBerinde Thank you, I will wait until it's ready. |
@RaduBerinde can you reassign? |
@asubiotto I'll put this on your plate for now. We may need to move to 1.2 (not sure what is the current state of array encoding for table columns). |
cc @justinj |
@cuongdo This is not going to make it into 1.1, @asubiotto's other big priority is getting external storage for HashJoiners and there isn't time for both big projects to make it in in 1.1, so lets move it to 1.2 unless we can get more hands on deck between now and the 1.1 feature freeze. |
Fixed in #18243. |
This is still to be done. |
assigning this issue to abhishek. Can't assign at the moment because he's still not a contributor |
I think that adding After some investigating, I found that the aggregator processor calls I'm getting a PR ready to fix this issue. |
As referenced in cockroachdb#15939, ARRAY_AGG erroneously returns `anyelement` as its fixed return type. This follows the convention of existing array builtin functions to have overloads for all non-array types, which allows the fixed return type to be known for each overload. Release note (bug fix): None
As referenced in cockroachdb#15939, ARRAY_AGG erroneously returns `anyelement` as its fixed return type. This follows the convention of existing array builtin functions to have overloads for all non-array types, which allows the fixed return type to be known for each overload. Whenever possible, we still use the expression's type so that aliases without explicit overloads return the expected type. Release note (bug fix): None
As referenced in cockroachdb#15939, ARRAY_AGG erroneously returns `anyelement` as its fixed return type. This follows the convention of existing array builtin functions to have overloads for all non-array types, which allows the fixed return type to be known for each overload. Whenever possible, we still use the expression's type so that aliases without explicit overloads return the expected type. Release note (bug fix): None
Fixed by #21475. |
We currently don't support arrays in DistSQL streams. The main thing that's missing is a way to encode them; this will have to be implemented to support arrays in table columns (see #15818). Once that's done we should enable support in DistSQL as well.
CC @asubiotto
The text was updated successfully, but these errors were encountered: