PFA the patch to support partition-wise joins for partitioned tables. The patch is based on the declarative parition support patches provided by Amit Langote on 26th August 2016.
I have applied declarative partitioning patches posted by Amit Langote on 26 Aug 2016 and then partition-wise-join patch, getting below error while make install.