Now I am developing an operator taking two arrays as input.
Say Op(A, B)
A is very large and is evenly distributed on all instances, but B is small and normally fits in one chunk.
Now I need every instance has the information in B to correctly process A.
Is there any way I can easily program to let all instances have all chunks in B?
I looked into the SciDB source code, it looks like redistribute() can do that, if so, how could I use that in my operator?

Hello,
Yes, redistribute() is a way to go. Notice though that it is deprecated (as of 14.12) and is being replaced by a set of redistributeXXX() functions. A good example of the usage is in src/query/ops/PhysicalSG.cpp. In general it should look something like: