Adding pointers to shape inference
flatten Select