1. A method implemented by a computing system in response to execution of program code by a processor of the computing system, the method comprising: receiving a first query from a client device at a first database node of a database instance comprising two or more database nodes, the first query specifying a first database table which is partitioned among two or more of the two or more database nodes; determining first partitioning metadata of the first database table, the first partitioning metadata usable to identify one of the two or more database nodes based on table key values; compiling the first query at the first database node to generate first compiled code; and transmitting the first compiled code and the first partitioning metadata from the first database node to the client device.