Finding distribution key of a table