https://bigdataschool.ru/blog/mathematics-and-sql-optimization-of-joins-in-greenplum-with-gporca/